From f0f897fad620796d702641fb7b83db00d138a7b1 Mon Sep 17 00:00:00 2001 From: Jeffrey Forman Date: Wed, 24 Dec 2014 17:15:06 -0500 Subject: [PATCH] fix models test reason for test where no statistics port is specified --- binder/tests/testModels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binder/tests/testModels.py b/binder/tests/testModels.py index bb433c9..568654e 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, "binder_bindserver.statistics_port may not be NULL"): + with self.assertRaisesMessage(IntegrityError, "NOT NULL constraint failed: binder_bindserver.statistics_port"): bindserver_1.save() def test_BindServerNonIntStatisticsPort(self):