def test_build_project_tags_empty(self): dbStub.reset() dbStub.addResult([]) t = Tags() data = t.build_project_tags(0) self.assertFalse(data) self.assertTrue(dbStub.closed)
def test_build_cloud_empty(self): dbStub.reset() dbStub.addResult([]) t = Tags() data = t.build_cloud() self.assertFalse(data) self.assertTrue(dbStub.closed)
def test_tag_id_empty(self): dbStub.reset() dbStub.addResult([]) t = Tags() tag_id = t.tag_id('testi') self.assertEquals(tag_id, None) self.assertTrue(dbStub.closed)
def tearDown(self): dbStub.reset() userstoreStub.reset() self.cm = None self.req = None multiproject.common.projects.api.Projects.create_project = self.orig_create_project multiproject.common.projects.api.Projects.remove_project = self.orig_remove_project multiproject.common.projects.api.Projects.get_project = self.orig_get_project multiproject.core.permissions.CQDESuperUserStore.is_superuser = self.orig_is_superuser
def tearDown(self): dbStub.reset() self.cm = None self.req = None
def tearDown(self): dbStub.reset() self.cm = None self.req = None CQDECategoryStore().bind_category_project = self.orig_bind CQDECategoryStore().unbind_category_project = self.orig_unbind
def tearDown(self): dbStub.reset() userstoreStub.reset() conf.use_test_db(False)
def tearDown(self): self.cm = None self.req = None userstoreStub.reset() dbStub.reset()
def tearDown(self): dbStub.reset()
def tearDown(self): dbStub.reset() self.cm = None self.req = None Tags.add = self.orig_add Tags.remove = self.orig_remove