Removed the checking for the exception message when trying to produce an

IntegrityError, because that message differs based on the environment.
This commit is contained in:
Daniel Roschka 2015-03-29 19:47:58 +02:00
parent 95b86434ff
commit a6747b4f25
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class Model_BindServer_Tests(TestCase):
def test_BindServerMissingStatisticsPort(self): def test_BindServerMissingStatisticsPort(self):
"""Attempt to add a BindServer without a statistics port.""" """Attempt to add a BindServer without a statistics port."""
bindserver_1 = models.BindServer(hostname="badtest1") 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() bindserver_1.save()
def test_BindServerNonIntStatisticsPort(self): def test_BindServerNonIntStatisticsPort(self):