def test_default_connection(self): b1 = BitShares("wss://eu.nodes.bitshares.ws", nobroadcast=True) set_shared_bitshares_instance(b1) test = Asset("1.3.0", blockchain_instance=b1) # Needed to clear cache test.refresh() """
def test_default_connection2(self): b1 = BitShares("wss://node.testnet.bitshares.eu", nobroadcast=True) test = Asset("1.3.0", blockchain_instance=b1) test.refresh() b2 = BitShares("wss://node.bitshares.eu", nobroadcast=True) bts = Asset("1.3.0", blockchain_instance=b2) bts.refresh() self.assertEqual(test["symbol"], "TEST") self.assertEqual(bts["symbol"], "X4T")
def test_default_connection(self): b1 = BitShares("wss://node.testnet.bitshares.eu", nobroadcast=True) set_shared_bitshares_instance(b1) test = Asset("1.3.0", blockchain_instance=b1) # Needed to clear cache test.refresh() b2 = BitShares("wss://node.bitshares.eu", nobroadcast=True) set_shared_bitshares_instance(b2) bts = Asset("1.3.0", blockchain_instance=b2) # Needed to clear cache bts.refresh() self.assertEqual(test["symbol"], "TEST") self.assertEqual(bts["symbol"], "BTS")
def test_default_connection2(self): b1 = BitShares("wss://eu.nodes.bitshares.ws", nobroadcast=True) test = Asset("1.3.0", blockchain_instance=b1) test.refresh() """