Пример #1
0
 def test_interface(self):
     self.assertTrue(IEmbedder.providedBy(self.multimedia))
     self.assertTrue(verifyObject(IEmbedder, self.multimedia))
 def test_factory(self):
     from zope.component import createObject
     fti = queryUtility(IDexterityFTI, name='sc.embedder')
     factory = fti.factory
     new_object = createObject(factory)
     self.assertTrue(IEmbedder.providedBy(new_object))
Пример #3
0
 def test_adding(self):
     self.assertTrue(IEmbedder.providedBy(self.multimedia))
     self.assertTrue(verifyClass(IEmbedder, Embedder))
 def test_adding(self):
     self.assertTrue(IEmbedder.providedBy(self.multimedia))
Пример #5
0
 def test_interface(self):
     self.assertTrue(IEmbedder.providedBy(self.multimedia))
     self.assertTrue(verifyObject(IEmbedder, self.multimedia))
Пример #6
0
 def test_adding(self):
     self.assertTrue(IEmbedder.providedBy(self.multimedia))
     self.assertTrue(verifyClass(IEmbedder, Embedder))
 def test_factory(self):
     from zope.component import createObject
     fti = queryUtility(IDexterityFTI, name='sc.embedder')
     factory = fti.factory
     new_object = createObject(factory)
     self.assertTrue(IEmbedder.providedBy(new_object))
 def test_adding(self):
     self.assertTrue(IEmbedder.providedBy(self.multimedia))