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:
parent
95b86434ff
commit
a6747b4f25
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue