diff --git a/binder/tests/testModels.py b/binder/tests/testModels.py index 568654e..20bf359 100644 --- a/binder/tests/testModels.py +++ b/binder/tests/testModels.py @@ -15,7 +15,7 @@ class Model_BindServer_Tests(TestCase): def test_BindServerMissingStatisticsPort(self): """Attempt to add a BindServer without a statistics port.""" bindserver_1 = models.BindServer(hostname="badtest1") - with self.assertRaisesMessage(IntegrityError, "NOT NULL constraint failed: binder_bindserver.statistics_port"): + with self.assertRaises(IntegrityError): bindserver_1.save() def test_BindServerNonIntStatisticsPort(self):