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

test/networkbench: Improve test verbosity.

parent 02165a07
......@@ -44,14 +44,16 @@ class TestDNSBench(unittest.TestCase):
info = dnsbench.resolve(
self.assertEquals(info[0], 'DNS')
self.assertEquals(info[1], '')
self.assertEquals(info[2], 200)
self.assertTrue(info[3] < 1)
self.assertEquals(info[4], 'OK')
self.assertEquals(set(info[5]), set([u'', u'']))
self.assertEquals(info[4], 'OK',
"%s != OK, full info: %s" % (info[4], info) )
self.assertEquals(set(info[5]), set([u'', u'']),
"%s != set([u'', u'']), full info: %s" % (set(info[5]), info))
def test_dnsbench_fail(self):
""" 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