Skip to content
Snippets Groups Projects
Commit 633ea1ee authored by Holger Nahrstaedt's avatar Holger Nahrstaedt
Browse files

fix py 2.7

parent ad5bef2c
No related branches found
No related tags found
No related merge requests found
# This Python file uses the following encoding: utf-8
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
......@@ -54,19 +54,19 @@ class Testcases(unittest.TestCase):
def test_btc_uncompressed(self):
public_key = PublicKey(key["public_key"])
address = Address(address=None, pubkey=public_key.unCompressed())
self.assertEqual(key["Uncompressed_BTC"], str(format(address.derive256address_with_version(0), "STM")))
self.assertEqual(str(key["Uncompressed_BTC"]), str(format(address.derive256address_with_version(0), "STM")))
def test_btc_compressed(self):
public_key = PublicKey(key["public_key"])
address = Address(address=None, pubkey=repr(public_key))
self.assertEqual(key["Compressed_BTC"], str(format(address.derive256address_with_version(0), "STM")))
self.assertEqual(str(key["Compressed_BTC"]), str(format(address.derive256address_with_version(0), "STM")))
def test_pts_uncompressed(self):
public_key = PublicKey(key["public_key"])
address = Address(address=None, pubkey=public_key.unCompressed())
self.assertEqual(key["Uncompressed_PTS"], str(format(address.derive256address_with_version(56), "STM")))
self.assertEqual(str(key["Uncompressed_PTS"]), str(format(address.derive256address_with_version(56), "STM")))
def test_pts_compressed(self):
public_key = PublicKey(key["public_key"])
address = Address(address=None, pubkey=repr(public_key))
self.assertEqual(key["Compressed_PTS"], str(format(address.derive256address_with_version(56), "STM")))
self.assertEqual(str(key["Compressed_PTS"]), str(format(address.derive256address_with_version(56), "STM")))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment