'Test when the user does not attach a file'

def test_csv_file_not_attached(self):

    csv_content = 'test_student1@example.com,test_student_1,tester1,USA\ntest_student2@example.com,test_student_1,tester2,US'
    uploaded_file = SimpleUploadedFile('temp.csv', csv_content)
    response = self.client.post(self.url, {'file_not_found': uploaded_file})
    self.assertEqual(response.status_code, 200)
    data = json.loads(response.content)
    self.assertNotEquals(len(data['general_errors']), 0)
    self.assertEquals(data['general_errors'][0]['response'], 'File    is    not    attached.')
    manual_enrollments = ManualEnrollmentAudit.objects.all()
    self.assertEqual(manual_enrollments.count(), 0)
