def test_opens_issues_from_issues_dir(self, with_issues, parsed_args_issues_dir, api_mock):
    'Test that the callback calls the API.open_issue for the expected\n        repos and issues, when the issues all exist and are well formed.\n        '
    expected_calls = [mock.call(issue.title, issue.body, mock.ANY) for (repo_name, issue) in with_issues]
    feedback.callback(args=parsed_args_issues_dir, api=api_mock)
    api_mock.create_issue.assert_has_calls(expected_calls, any_order=True)
Test that the callback calls the API.open_issue for the expected
repos and issues, when the issues all exist and are well formed.
def test_opens_issues_from_issues_dir(self, with_issues, parsed_args_issues_dir, api_mock):
    'Test that the callback calls the API.open_issue for the expected\n        repos and issues, when the issues all exist and are well formed.\n        '
    expected_calls = [mock.call(issue.title, issue.body, mock.ANY) for (repo_name, issue) in with_issues]
    feedback.callback(args=parsed_args_issues_dir, api=api_mock)
    api_mock.create_issue.assert_has_calls(expected_calls, any_order=True)