fix models test reason for test where no statistics port is specified

This commit is contained in:
Jeffrey Forman 2014-12-24 17:15:06 -05:00
parent da4bbed5d7
commit f0f897fad6
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, "binder_bindserver.statistics_port may not be NULL"): with self.assertRaisesMessage(IntegrityError, "NOT NULL constraint failed: binder_bindserver.statistics_port"):
bindserver_1.save() bindserver_1.save()
def test_BindServerNonIntStatisticsPort(self): def test_BindServerNonIntStatisticsPort(self):