def test_uri_extras(self): uri = URI.parse( 'bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?amount=123.22&other-param=something&req-extra=param' ) assert uri['address'] == '1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj' assert uri['amount'] == '123.22' assert uri['other-param'] == u'something' assert uri['req-extra'] == u'param'
def test_uri_extras(self): uri = URI.parse('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?amount=123.22&other-param=something&req-extra=param') assert uri['address'] == '1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj' assert uri['amount'] == '123.22' assert uri['other-param'] == u'something' assert uri['req-extra'] == u'param'
def test_parse_uri_amount(self): uri = URI.parse('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?amount=123.22') assert uri['address'] == u'1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj' assert uri['amount'] == u'123.22'
def test_parse_uri(self): uri = URI.parse('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj') assert uri['address'] == u'1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj'
def test_parse_uri_amount(self): uri = URI.parse( 'bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj?amount=123.22') assert uri['address'] == u'1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj' assert uri['amount'] == u'123.22'