mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-11 23:42:38 +00:00
test_iputil: improve error message
This commit is contained in:
parent
2fef5dac1f
commit
88a7fdcaab
@ -7,7 +7,8 @@ class ListAddresses(unittest.TestCase):
|
|||||||
d = iputil.get_local_addresses_async()
|
d = iputil.get_local_addresses_async()
|
||||||
def _check(addresses):
|
def _check(addresses):
|
||||||
self.failUnless(len(addresses) >= 1) # always have localhost
|
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)
|
d.addCallbacks(_check)
|
||||||
return d
|
return d
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user