def test_add_courses(self): location = os.getcwd() filepath = os.path.join(location, 'schoolbloc', 'data_import', 'testing_data', 'courses.csv') csv_import.courses_import(filepath) courses = Course.query.all() course = courses.pop() self.assertEqual(course.name, 'CIS 1020')