Exemplo n.º 1
0
 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'
Exemplo n.º 2
0
 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' 
Exemplo n.º 3
0
 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'
Exemplo n.º 4
0
 def test_parse_uri(self):
     uri = URI.parse('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj')
     assert uri['address'] == u'1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj'
Exemplo n.º 5
0
 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'
Exemplo n.º 6
0
 def test_parse_uri(self):
     uri = URI.parse('bitcoin:1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj')
     assert uri['address'] == u'1DP69gMMvSuYhbnxsi4EJEFufUAbDrEQfj'