Added address length check
This commit is contained in:
parent
c8a781c7c5
commit
2bbda63b9c
|
@ -100,6 +100,8 @@ class TestAPI(TestProcessProto):
|
||||||
addr = self._add_random_address('random_1')
|
addr = self._add_random_address('random_1')
|
||||||
self.assertRegexpMatches(addr, r'^BM-')
|
self.assertRegexpMatches(addr, r'^BM-')
|
||||||
self.assertRegexpMatches(addr[3:], r'[a-zA-Z1-9]+$')
|
self.assertRegexpMatches(addr[3:], r'[a-zA-Z1-9]+$')
|
||||||
|
# Whitepaper says "around 36 character"
|
||||||
|
self.assertLessEqual(len(addr[3:]), 40)
|
||||||
self.assertEqual(self.api.deleteAddress(addr), 'success')
|
self.assertEqual(self.api.deleteAddress(addr), 'success')
|
||||||
|
|
||||||
def test_addressbook(self):
|
def test_addressbook(self):
|
||||||
|
|
Reference in New Issue
Block a user