diff options
Diffstat (limited to 'tests/constraints')
-rw-r--r-- | tests/constraints/tests.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/constraints/tests.py b/tests/constraints/tests.py index d53892c3a3..995c5f461c 100644 --- a/tests/constraints/tests.py +++ b/tests/constraints/tests.py @@ -18,6 +18,18 @@ class BaseConstraintTests(SimpleTestCase): with self.assertRaisesMessage(NotImplementedError, msg): c.constraint_sql(None, None) + def test_create_sql(self): + c = BaseConstraint('name') + msg = 'This method must be implemented by a subclass.' + with self.assertRaisesMessage(NotImplementedError, msg): + c.create_sql(None, None) + + def test_remove_sql(self): + c = BaseConstraint('name') + msg = 'This method must be implemented by a subclass.' + with self.assertRaisesMessage(NotImplementedError, msg): + c.remove_sql(None, None) + class CheckConstraintTests(TestCase): def test_repr(self): |