def test_add_teachers(self): location = os.getcwd() filepath = os.path.join(location, 'schoolbloc', 'data_import', 'testing_data', 'teachers.csv') csv_import.teachers_import(filepath) teachers = Teacher.query.all() teacher = teachers.pop() self.assertEqual(teacher.first_name + ' ' + teacher.last_name, 'ron weasley')