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

Try again to fix unit test fo py 2.7

parent 9f170a91
No related branches found
No related tags found
No related merge requests found
"""THIS FILE IS GENERATED FROM beem SETUP.PY.""" """THIS FILE IS GENERATED FROM beem SETUP.PY."""
version = '0.19.17' version = '0.19.18'
"""THIS FILE IS GENERATED FROM beem SETUP.PY.""" """THIS FILE IS GENERATED FROM beem SETUP.PY."""
version = '0.19.17' version = '0.19.18'
"""THIS FILE IS GENERATED FROM beem SETUP.PY.""" """THIS FILE IS GENERATED FROM beem SETUP.PY."""
version = '0.19.17' version = '0.19.18'
"""THIS FILE IS GENERATED FROM beem SETUP.PY.""" """THIS FILE IS GENERATED FROM beem SETUP.PY."""
version = '0.19.17' version = '0.19.18'
"""THIS FILE IS GENERATED FROM beem SETUP.PY.""" """THIS FILE IS GENERATED FROM beem SETUP.PY."""
version = '0.19.17' version = '0.19.18'
...@@ -24,10 +24,12 @@ core_unit = "STM" ...@@ -24,10 +24,12 @@ core_unit = "STM"
nodes = ["wss://steemd.pevo.science", "wss://gtg.steem.house:8090", "wss://rpc.steemliberator.com", "wss://rpc.buildteam.io", nodes = ["wss://steemd.pevo.science", "wss://gtg.steem.house:8090", "wss://rpc.steemliberator.com", "wss://rpc.buildteam.io",
"wss://rpc.steemviz.com", "wss://seed.bitcoiner.me", "wss://node.steem.ws", "wss://steemd.steemgigs.org", "wss://steemd.steemit.com", "wss://rpc.steemviz.com", "wss://seed.bitcoiner.me", "wss://node.steem.ws", "wss://steemd.steemgigs.org", "wss://steemd.steemit.com",
"wss://steemd.minnowsupportproject.org"] "wss://steemd.minnowsupportproject.org"]
nodes_https = ["https://api.steemit.com"] nodes_https = ['https://api.steemit.com','https://steemd.privex.io','https://steemd.pevo.science','https://rpc.steemliberator.com',
'https://rpc.buildteam.io','https://steemd.minnowsupportproject.org','https://gtg.steem.house:8090','https://seed.bitcoiner.me']
nodes_appbase = ["https://api.steemitstage.com", "wss://appbasetest.timcliff.com"] nodes_appbase = ["https://api.steemitstage.com", "wss://appbasetest.timcliff.com"]
test_list = ["wss://steemd.doesnot.exists", "wss://api.steemit.com", "wss://steemd.pevo.science", "wss://gtg.steem.house:8090", test_list = ["wss://steemd.doesnot.exists", "wss://api.steemit.com", "wss://steemd.pevo.science", "wss://gtg.steem.house:8090",
"https://api.steemit.com", "https://api.steemitstage.com", "wss://appbasetest.timcliff.com"] "https://api.steemit.com", "https://api.steemitstage.com", "wss://appbasetest.timcliff.com",'https://steemd.privex.io','https://steemd.pevo.science','https://rpc.steemliberator.com',
'https://rpc.buildteam.io','https://steemd.minnowsupportproject.org','https://gtg.steem.house:8090','https://seed.bitcoiner.me']
class Testcases(unittest.TestCase): class Testcases(unittest.TestCase):
......
...@@ -54,19 +54,19 @@ class Testcases(unittest.TestCase): ...@@ -54,19 +54,19 @@ class Testcases(unittest.TestCase):
def test_btc_uncompressed(self): def test_btc_uncompressed(self):
public_key = PublicKey(key["public_key"]) public_key = PublicKey(key["public_key"])
address = Address(address=None, pubkey=public_key.unCompressed()) address = Address(address=None, pubkey=public_key.unCompressed())
self.assertEqual(str(key["Uncompressed_BTC"]), str(format(address.derive256address_with_version(0), "STM"))) self.assertEqual(str(key["Uncompressed_BTC"]), (format(address.derive256address_with_version(0), "STM")))
def test_btc_compressed(self): def test_btc_compressed(self):
public_key = PublicKey(key["public_key"]) public_key = PublicKey(key["public_key"])
address = Address(address=None, pubkey=repr(public_key)) address = Address(address=None, pubkey=repr(public_key))
self.assertEqual(str(key["Compressed_BTC"]), str(format(address.derive256address_with_version(0), "STM"))) self.assertEqual(str(key["Compressed_BTC"]), (format(address.derive256address_with_version(0), "STM")))
def test_pts_uncompressed(self): def test_pts_uncompressed(self):
public_key = PublicKey(key["public_key"]) public_key = PublicKey(key["public_key"])
address = Address(address=None, pubkey=public_key.unCompressed()) address = Address(address=None, pubkey=public_key.unCompressed())
self.assertEqual(str(key["Uncompressed_PTS"]), str(format(address.derive256address_with_version(56), "STM"))) self.assertEqual(str(key["Uncompressed_PTS"]), (format(address.derive256address_with_version(56), "STM")))
def test_pts_compressed(self): def test_pts_compressed(self):
public_key = PublicKey(key["public_key"]) public_key = PublicKey(key["public_key"])
address = Address(address=None, pubkey=repr(public_key)) address = Address(address=None, pubkey=repr(public_key))
self.assertEqual(str(key["Compressed_PTS"]), str(format(address.derive256address_with_version(56), "STM"))) self.assertEqual(str(key["Compressed_PTS"]), (format(address.derive256address_with_version(56), "STM")))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment