From a6747b4f25e9cdfe85c58fac6cbf95d76f89d147 Mon Sep 17 00:00:00 2001 From: Daniel Roschka Date: Sun, 29 Mar 2015 19:47:58 +0200 Subject: [PATCH] Removed the checking for the exception message when trying to produce an IntegrityError, because that message differs based on the environment. --- 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 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):