diff --git a/SAS/TMSS/test/t_tmssapp_specification_functional.py b/SAS/TMSS/test/t_tmssapp_specification_functional.py index ac22c0ef9ab63c27cff2ece54861e8975a103775..abb2e9a216f62209dda82ca9115637dd4f243ab7 100755 --- a/SAS/TMSS/test/t_tmssapp_specification_functional.py +++ b/SAS/TMSS/test/t_tmssapp_specification_functional.py @@ -47,30 +47,6 @@ from lofar.sas.tmss.test.tmss_test_data_rest import TMSSRESTTestDataCreator test_data_creator = TMSSRESTTestDataCreator(BASE_URL, AUTH) -def get_total_number_of_objects(object_name): - """ - Retrieve the total number (count) of the given object - :param: object_name (string) or sub-url like 'subtask', etc - :return: url for new item - """ - response = requests.get(BASE_URL + '/' + object_name + '/', auth=AUTH) - json_response = response.json() - return json_response.get('count') - -def get_sub_urls(object_name): - """ - Retrieve the total number (count) of the given object - :param: object_name (string) or sub-url like 'subtask', etc - :return: url for new item - """ - response = requests.get(BASE_URL + '/' + object_name + '/', auth=AUTH) - json_response = response.json() - lst_urls = [] - for item in json_response.get('results'): - lst_urls.append(item['url']) - return lst_urls - - class BasicFunctionTestCase(unittest.TestCase): # todo: test_welcome_page (once we have one :)) pass @@ -200,9 +176,7 @@ class SchedulingUnitTemplateTestCase(unittest.TestCase): DELETE_and_assert_gone(self, url) def test_GET_scheduling_unit_template_view_returns_correct_entry(self): - """ - Construct two 'scheduling_unit_template' objects and check if GET of separate 'id' URLs results in correct data - """ + test_data_1 = SchedulingUnitTemplate_test_data("scheduling_unit_template_1") test_data_2 = SchedulingUnitTemplate_test_data("scheduling_unit_template_2") id1 = models.SchedulingUnitTemplate.objects.create(**test_data_1).id