diff --git a/lib/tests/test_util.py b/lib/tests/test_util.py index 75aa3bf9..ea4476ab 100644 --- a/lib/tests/test_util.py +++ b/lib/tests/test_util.py @@ -60,10 +60,10 @@ class TestUtil(unittest.TestCase): {'r': 'http://domain.tld/page?h=2a8628fc2fbe'}) def test_parse_URI_invalid_address(self): - self.assertRaises(AssertionError, parse_URI, 'bitcoin:invalidaddress') + self.assertRaises(BaseException, parse_URI, 'bitcoin:invalidaddress') def test_parse_URI_invalid(self): - self.assertRaises(AssertionError, parse_URI, 'notbitcoin:15mKKb2eos1hWa6tisdPwwDC1a5J1y9nma') + self.assertRaises(BaseException, parse_URI, 'notbitcoin:15mKKb2eos1hWa6tisdPwwDC1a5J1y9nma') def test_parse_URI_parameter_polution(self): self.assertRaises(Exception, parse_URI, 'bitcoin:15mKKb2eos1hWa6tisdPwwDC1a5J1y9nma?amount=0.0003&label=test&amount=30.0')