def test_opens_nothing_if_open_prompt_returns_false(self, with_issues, parsed_args_issues_dir, api_mock):
    "Test that the callback does not attempt to open any issues if the\n        'may I open' prompt returns false.\n        "
    args_dict = vars(parsed_args_issues_dir)
    args_dict['batch_mode'] = False
    parsed_args_interactive = argparse.Namespace(**args_dict)
    with mock.patch('builtins.input', return_value='n', autospec=True):
        feedback.callback(args=parsed_args_interactive, api=api_mock)
    assert (not api_mock.create_issue.called)
Test that the callback does not attempt to open any issues if the
'may I open' prompt returns false.
def test_opens_nothing_if_open_prompt_returns_false(self, with_issues, parsed_args_issues_dir, api_mock):
    "Test that the callback does not attempt to open any issues if the\n        'may I open' prompt returns false.\n        "
    args_dict = vars(parsed_args_issues_dir)
    args_dict['batch_mode'] = False
    parsed_args_interactive = argparse.Namespace(**args_dict)
    with mock.patch('builtins.input', return_value='n', autospec=True):
        feedback.callback(args=parsed_args_interactive, api=api_mock)
    assert (not api_mock.create_issue.called)