Test that the deprecated is_abstract=True flag is equivalent to is_creatable=False

This commit is contained in:
Matt Westcott 2015-09-04 12:19:50 +01:00
parent e87cecdcaf
commit c3beacacf0

View file

@ -779,3 +779,6 @@ class TestIsCreatable(TestCase):
self.assertEqual(len(ws), 1)
warning = ws[0]
self.assertIn("is_creatable", text_type(warning.message))
self.assertFalse(AbstractPage.is_creatable)
self.assertNotIn(AbstractPage, PAGE_MODEL_CLASSES)