Fixes outstanding failing tests
Fixes three failing tests. For test_ipinfo_ResolutionFail it fixes the following issues: * failing when no network is available * failing when Google changes the ip addresses of the service * failing when the order of returned ip addresses is different For test_DeleteRecordInitial_Empty and test_DeleteRecordInitial it fixes a not existing BindServer object.
This commit is contained in:
parent
0da5e9ba89
commit
95b86434ff
|
@ -7,7 +7,6 @@ class HelperTests(TestCase):
|
||||||
response = helpers.ip_info("foobar.doesnotexist.local")
|
response = helpers.ip_info("foobar.doesnotexist.local")
|
||||||
self.assertEqual([['Error', u'Unable to resolve foobar.doesnotexist.local: [Errno -2] Name or service not known']],
|
self.assertEqual([['Error', u'Unable to resolve foobar.doesnotexist.local: [Errno -2] Name or service not known']],
|
||||||
response)
|
response)
|
||||||
response = helpers.ip_info("time1.google.com")
|
response = helpers.ip_info("localhost")
|
||||||
self.assertEqual([['IPv4 (1)', u'216.239.32.15'], ['IPv6 (1)', u'2001:4860:4802:32::f']],
|
self.assertEqual([['IPv4 (1)', u'127.0.0.1'], ['IPv6 (1)', u'::1']],
|
||||||
response)
|
sorted(response))
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,9 @@ class PostTests(TestCase):
|
||||||
""" Unit Tests that exercise HTTP POST. """
|
""" Unit Tests that exercise HTTP POST. """
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.client = Client()
|
self.client = Client()
|
||||||
|
models.BindServer(hostname="testserver.test.net",
|
||||||
|
statistics_port=1234).save()
|
||||||
|
|
||||||
|
|
||||||
def test_DeleteRecordInitial_Empty(self):
|
def test_DeleteRecordInitial_Empty(self):
|
||||||
""" Ensure the initial deletion form works as expected with no RR list. """
|
""" Ensure the initial deletion form works as expected with no RR list. """
|
||||||
|
|
Loading…
Reference in New Issue