mirror of
https://git.wownero.com/lza_menace/wownero-python.git
synced 2024-08-15 03:25:25 +00:00
Add more sanity tests on addresses
This commit is contained in:
parent
864b8f237a
commit
3131edf1a4
2 changed files with 31 additions and 10 deletions
|
@ -75,6 +75,9 @@ class Tests(object):
|
|||
def test_invalid(self):
|
||||
self.assertRaises(ValueError, Address, self.addr_invalid)
|
||||
self.assertRaises(ValueError, Address, self.iaddr_invalid)
|
||||
a = Address(self.addr)
|
||||
self.assertRaises(TypeError, a.with_payment_id, 2**64+1)
|
||||
self.assertRaises(TypeError, a.with_payment_id, "%x" % (2**64+1))
|
||||
|
||||
def test_type_mismatch(self):
|
||||
self.assertRaises(ValueError, Address, self.iaddr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue