def test_adding(self):
        self.grant('Contributor')

        portal = self.layer['portal']
        portal.invokeFactory('opengever.dossier.businesscasedossier', 'dossier1')
        d1 = portal['dossier1']
        self.failUnless(IBusinessCaseDossier.providedBy(d1))
    def test_factory(self):
        self.grant('Contributor')

        fti = queryUtility(IDexterityFTI, name='opengever.dossier.businesscasedossier')
        factory = fti.factory
        new_object = createObject(factory)
        self.failUnless(IBusinessCaseDossier.providedBy(new_object))
 def test_provides_interface(self):
     self.login(self.dossier_responsible)
     self.assertTrue(IBusinessCaseDossier.providedBy(self.dossier))