def test_skips_unexpected_issues_in_multi_issues_file(self, with_multi_issues_file, parsed_args_multi_issues_file, api_mock):
    'Test that an exception is raised if one or more issues are found\n        relating to student repos that ar not in prod(assignments, students).\n        '
    student_teams = parsed_args_multi_issues_file.students
    args_dict = vars(parsed_args_multi_issues_file)
    args_dict['students'] = student_teams[:(- 1)]
    args = argparse.Namespace(**args_dict)
    unexpected_repos = plug.generate_repo_names(student_teams[(- 1):], ASSIGNMENT_NAMES)
    (_, repos_and_issues) = with_multi_issues_file
    expected_calls = [mock.call(issue.title, issue.body, mock.ANY) for (repo_name, issue) in repos_and_issues if (repo_name not in unexpected_repos)]
    feedback.callback(args=args, api=api_mock)
    api_mock.create_issue.assert_has_calls(expected_calls, any_order=True)
Test that an exception is raised if one or more issues are found
relating to student repos that ar not in prod(assignments, students).
def test_skips_unexpected_issues_in_multi_issues_file(self, with_multi_issues_file, parsed_args_multi_issues_file, api_mock):
    'Test that an exception is raised if one or more issues are found\n        relating to student repos that ar not in prod(assignments, students).\n        '
    student_teams = parsed_args_multi_issues_file.students
    args_dict = vars(parsed_args_multi_issues_file)
    args_dict['students'] = student_teams[:(- 1)]
    args = argparse.Namespace(**args_dict)
    unexpected_repos = plug.generate_repo_names(student_teams[(- 1):], ASSIGNMENT_NAMES)
    (_, repos_and_issues) = with_multi_issues_file
    expected_calls = [mock.call(issue.title, issue.body, mock.ANY) for (repo_name, issue) in repos_and_issues if (repo_name not in unexpected_repos)]
    feedback.callback(args=args, api=api_mock)
    api_mock.create_issue.assert_has_calls(expected_calls, any_order=True)