def test_group_tutor_application_by_global_id(self): all_tutor_applications = application_json._get_all_tutor_application(global_ids=None) self.assertEqual(len(all_tutor_applications), 1) tutor_applications_grouped = application_json._group_tutor_application_by_global_id(all_tutor_applications) self.assertEqual(len(tutor_applications_grouped["00012345"]["tutor_applications"]), 1)
def test_get_all_tutor_application_with_global_ids_list(self): tutor_applications = application_json._get_all_tutor_application(global_ids=['00012345']) self.assertEqual(len(tutor_applications), 1)
def test_get_all_tutor_application_without_global_ids_empty(self): all_tutor_applications = application_json._get_all_tutor_application(global_ids=None) self.assertEqual(len(all_tutor_applications), 1)
def test_group_tutor_application_by_global_id(self): all_tutor_applications = application_json._get_all_tutor_application(global_ids=None) self.assertEqual(len(all_tutor_applications), 1) tutor_applications_grouped = application_json._group_tutor_application_by_global_id(all_tutor_applications) self.assertEqual(len(tutor_applications_grouped["00012345"]["tutor_applications"]), 1)
def test_get_all_tutor_application_with_global_ids_list(self): tutor_applications = application_json._get_all_tutor_application(global_ids=['00012345']) self.assertEqual(len(tutor_applications), 1)
def test_get_all_tutor_application_without_global_ids_empty(self): all_tutor_applications = application_json._get_all_tutor_application(global_ids=None) self.assertEqual(len(all_tutor_applications), 1)