'Test Helper Method (not a test, called by other tests)
Takes a client response from a call to bulk_beta_modify_access with \'email_students\': False,
and the student identifier (email or username) given as \'identifiers\' in the request.
Asserts the reponse returns cleanly, that the student was added as a beta tester, and the
response properly contains their identifier, \'error\': False, and \'userDoesNotExist\': False.
Additionally asserts no email was sent.'

def add_notenrolled(self, response, identifier):

    self.assertEqual(response.status_code, 200)
    self.assertTrue(CourseBetaTesterRole(self.course.id).has_user(self.notenrolled_student))
    expected = {'action': 'add', 'results': [{'identifier': identifier, 'error': False, 'userDoesNotExist': False, 'is_active': True}]}
    res_json = json.loads(response.content)
    self.assertEqual(res_json, expected)
    self.assertEqual(len(mail.outbox), 0)
