electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 774bdcde732d206d7d408aa86b96ef97f3fe6e3e
parent f89a90016e528fbe237f7ac982226305a71d383b
Author: ThomasV <thomasv@electrum.org>
Date:   Tue, 16 Feb 2016 10:28:40 +0100

fix test_parse_URI

Diffstat:
Mlib/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 @@ -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')