예제 #1
0
 def test_get_entity_root_selected_all(self, mock_decorators):
     post_request = set_post_request(mock_decorators,
                                     {'entity': 'all_ESPO'},
                                     '/pgm_manager/search')
     self.assertEqual(
         pgm_manager_administration.get_entity_root_selected(post_request),
         'ESPO')
 def test_get_entity_root_selected(self, mock_decorators):
     post_request = set_post_request(mock_decorators, {'entity': '2',
                                                       'entity_root': '2'}, '/pgm_manager/search')
     self.assertEqual(pgm_manager_administration.get_entity_root_selected(post_request), '2')