From c40df2140749be19dfd3438eb6c97aae9d984cbb Mon Sep 17 00:00:00 2001
From: goei <goei@astron.nl>
Date: Wed, 15 Apr 2020 12:08:53 +0200
Subject: [PATCH] TMSS-178: Remove unused functions

---
 .../t_tmssapp_specification_functional.py     | 28 +------------------
 1 file changed, 1 insertion(+), 27 deletions(-)

diff --git a/SAS/TMSS/test/t_tmssapp_specification_functional.py b/SAS/TMSS/test/t_tmssapp_specification_functional.py
index ac22c0ef9ab..abb2e9a216f 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
-- 
GitLab