From 2bbda63b9ca7774ce1e2d21e4e4f513c3aa8269e Mon Sep 17 00:00:00 2001 From: Dmitri Bogomolov <4glitch@gmail.com> Date: Thu, 2 Aug 2018 17:15:05 +0300 Subject: [PATCH] Added address length check --- src/tests/test_api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/test_api.py b/src/tests/test_api.py index eb76d382..c68bd817 100644 --- a/src/tests/test_api.py +++ b/src/tests/test_api.py @@ -100,6 +100,8 @@ class TestAPI(TestProcessProto): addr = self._add_random_address('random_1') self.assertRegexpMatches(addr, r'^BM-') 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') def test_addressbook(self):