def METHOD_NAME(self):
    """
    Test user matching query does not exist exception raised
    :return:
    """
    with NamedTemporaryFile() as csv:
        csv = self._write_test_csv(csv, lines=['amm,amy@myedx.com,amy@newemail.com\n'])
        expected_message = 'Unable to send email to amy@newemail.com and ' \
                           'exception was User matching query does not exist.'
        with LogCapture(LOGGER_NAME) as log:
            call_command("recover_account", f"--csv_file_path={csv.name}")
            log.check_present(
                (LOGGER_NAME, 'ERROR', expected_message)
            )