'Test failure case of a poorly formatted email field'

def test_invalid_email_in_csv(self):

    csv_content = 'test_student.example.com,test_student_1,tester1,USA'
    uploaded_file = SimpleUploadedFile('temp.csv', csv_content)
    response = self.client.post(self.url, {'students_list': uploaded_file})
    data = json.loads(response.content)
    self.assertEqual(response.status_code, 200)
    self.assertNotEquals(len(data['row_errors']), 0)
    self.assertEquals(len(data['warnings']), 0)
    self.assertEquals(len(data['general_errors']), 0)
    self.assertEquals(data['row_errors'][0]['response'], 'Invalid    email    {0}.'.format('test_student.example.com'))
    manual_enrollments = ManualEnrollmentAudit.objects.all()
    self.assertEqual(manual_enrollments.count(), 0)
