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))
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))