def _do_test_parse_URI(self, uri, expected_address, expected_amount, expected_label, expected_message, expected_request_url): address, amount, label, message, request_url = parse_URI(uri) self.assertEqual(expected_address, address) self.assertEqual(expected_amount, amount) self.assertEqual(expected_label, label) self.assertEqual(expected_message, message) self.assertEqual(expected_request_url, request_url)
def _do_test_parse_URI(self, uri, expected_address, expected_amount, expected_label, expected_message, expected_request_url, chaincode="BTC"): address, amount, label, message, request_url = parse_URI(uri, active_chain=chainparams.get_chain_instance(chaincode)) self.assertEqual(expected_address, address) self.assertEqual(expected_amount, amount) self.assertEqual(expected_label, label) self.assertEqual(expected_message, message) self.assertEqual(expected_request_url, request_url)
def _do_test_parse_URI(self, uri, expected): result = parse_URI(uri) self.assertEqual(expected, result)