mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 23:02:25 +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()
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user