def METHOD_NAME(self):
    BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
    if not os.path.basename(BASE_DIR).startswith("backend"):
        test_file_path = os.path.join(BASE_DIR, "backend/tests/courses/test-opendata.json")
    else:
        test_file_path = os.path.join(BASE_DIR, "tests/courses/test-opendata.json")
    upsert_course_from_opendata(
        json.load(open(test_file_path, "r"))["result_data"][0],
        TEST_SEMESTER,
    )
    self.assertEqual(1, Course.objects.count())
    self.assertEqual(23, Section.objects.count())
    self.assertEqual(3, Meeting.objects.count())
    self.assertEqual(2, Instructor.objects.count())