def test_not_available(self): """ Tests to make sure the page is not creatable and not in CodeRed CMS's global list of page models. # noqa """ self.assertFalse(self.model.is_creatable) self.assertFalse(self.model in get_page_models())
def test_is_available(self): """ Tests to make sure the page is creatable and in CodeRed CMS's global list of page models. """ self.assertTrue(self.model.is_creatable) self.assertTrue(self.model in get_page_models())
def test_not_available(self): self.assertFalse(self.model.is_creatable) self.assertTrue(self.model in get_page_models())