def test_add_students(self): location = os.getcwd() filepath = os.path.join(location, 'schoolbloc', 'data_import', 'testing_data', 'students.csv') csv_import.students_import(filepath) students = Student.query.all() student = students.pop() self.assertEqual('{} {}'.format(student.first_name, student.last_name), 'amy little')