]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_iputil: improve error message
authorBrian Warner <warner@allmydata.com>
Mon, 16 Apr 2007 22:05:25 +0000 (15:05 -0700)
committerBrian Warner <warner@allmydata.com>
Mon, 16 Apr 2007 22:05:25 +0000 (15:05 -0700)
src/allmydata/test/test_iputil.py

index 79f06752a1cf36224cccb8ea9e94d1edbc168fee..e4e524fa723db61bede333b142b95c8331de1072 100644 (file)
@@ -7,7 +7,8 @@ class ListAddresses(unittest.TestCase):
         d = iputil.get_local_addresses_async()
         def _check(addresses):
             self.failUnless(len(addresses) >= 1) # always have localhost
-            self.failUnless("127.0.0.1" in addresses)
+            self.failUnless("127.0.0.1" in addresses,
+                            "didn't see 127.0.0.1 in %s" % (addresses,))
         d.addCallbacks(_check)
         return d