From 774bdcde732d206d7d408aa86b96ef97f3fe6e3e Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 16 Feb 2016 10:28:40 +0100 Subject: [PATCH] fix test_parse_URI --- lib/tests/test_util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tests/test_util.py b/lib/tests/test_util.py index 75aa3bf9c..ea4476ab0 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')