Exemplo n.º 1
0
 def test_remove_relations_missing_catalog(self):
     # Remove relations catalog and ensure the event handler doesn't fail
     unregister_fake_catalog()
     try:
         event.removeRelations(self.content, None)
     except ComponentLookupError:
         self.fail("removeRelations fails when catalog utility is missing")
Exemplo n.º 2
0
 def test_break_relations_missing_catalog(self):
     # Remove relations catalog and ensure the event handler doesn't fail
     unregister_fake_catalog()
     try:
         event.breakRelations(ObjectEvent(self.content))
     except ComponentLookupError:
         self.fail("breakRelations fails when catalog utility is missing")
Exemplo n.º 3
0
 def test_remove_relations_missing_catalog(self):
     # Remove relations catalog and ensure the event handler doesn't fail
     unregister_fake_catalog()
     try:
         event.removeRelations(self.content, None)
     except ComponentLookupError:
         self.fail("removeRelations fails when catalog utility is missing")
Exemplo n.º 4
0
 def test_break_relations_missing_catalog(self):
     # Remove relations catalog and ensure the event handler doesn't fail
     unregister_fake_catalog()
     try:
         event.breakRelations(ObjectEvent(self.content))
     except ComponentLookupError:
         self.fail("breakRelations fails when catalog utility is missing")
Exemplo n.º 5
0
 def tearDown(self):
     unregister_fake_catalog()
     unregister_fake_intid()
Exemplo n.º 6
0
 def tearDown(self):
     unregister_fake_catalog()
     unregister_fake_intid()