Esempio n. 1
0
 def test_invalidate_scheme_tree(self):
     request = testing.DummyRequest()
     request.matchdict['scheme_id'] = 'TREES'
     request.skos_registry = self.regis
     atramhasisAdminview = AtramhasisAdminView(request)
     info = atramhasisAdminview.invalidate_scheme_tree()
     self.assertIsNotNone(info)
Esempio n. 2
0
 def test_invalidate_scheme_tree(self):
     request = testing.DummyRequest()
     request.matchdict['scheme_id'] = 'TREES'
     request.skos_registry = self.regis
     atramhasisAdminview = AtramhasisAdminView(request)
     info = atramhasisAdminview.invalidate_scheme_tree()
     self.assertIsNotNone(info)
Esempio n. 3
0
    def test_invalidate_scheme_tree(self):
        tree_cache_dictionary['foo |TREES nl'] = []
        tree_cache_dictionary['foo |TREES fr'] = []
        tree_cache_dictionary['bar |MATERIALS fr'] = []

        request = testing.DummyRequest()
        request.matchdict['scheme_id'] = 'TREES'
        request.skos_registry = self.regis
        atramhasisAdminview = AtramhasisAdminView(request)
        response = atramhasisAdminview.invalidate_scheme_tree()

        self.assertEqual(response.status_int, 200)
        self.assertIn('bar |MATERIALS fr', tree_cache_dictionary.keys())
        self.assertNotIn('foo |TREES nl', tree_cache_dictionary.keys())
        self.assertNotIn('foo |TREES fr', tree_cache_dictionary.keys())
Esempio n. 4
0
    def test_invalidate_scheme_tree(self):
        tree_cache_dictionary['foo |TREES nl'] = []
        tree_cache_dictionary['foo |TREES fr'] = []
        tree_cache_dictionary['bar |MATERIALS fr'] = []

        request = testing.DummyRequest()
        request.matchdict['scheme_id'] = 'TREES'
        request.skos_registry = self.regis
        atramhasisAdminview = AtramhasisAdminView(request)
        response = atramhasisAdminview.invalidate_scheme_tree()

        self.assertEqual(response.status_int, 200)
        self.assertIn('bar |MATERIALS fr', tree_cache_dictionary.keys())
        self.assertNotIn('foo |TREES nl', tree_cache_dictionary.keys())
        self.assertNotIn('foo |TREES fr', tree_cache_dictionary.keys())