Commit 473123ad authored by Rafael Monnerat's avatar Rafael Monnerat

test/networkbench: Improve test verbosity.

parent 02165a07
...@@ -50,8 +50,10 @@ class TestDNSBench(unittest.TestCase): ...@@ -50,8 +50,10 @@ class TestDNSBench(unittest.TestCase):
self.assertEquals(info[2], 200) self.assertEquals(info[2], 200)
self.assertTrue(info[3] < 1) self.assertTrue(info[3] < 1)
self.assertEquals(info[4], 'OK') self.assertEquals(info[4], 'OK',
self.assertEquals(set(info[5]), set([u'85.118.38.162', u'176.31.129.213'])) "%s != OK, full info: %s" % (info[4], info) )
self.assertEquals(set(info[5]), set([u'85.118.38.162', u'176.31.129.213']),
"%s != set([u'85.118.38.162', u'176.31.129.213']), full info: %s" % (set(info[5]), info))
def test_dnsbench_fail(self): def test_dnsbench_fail(self):
""" Test dns failure resolution """ Test dns failure resolution
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment