def test_default_connection2(self): b1 = DeEx("wss://node.testnet.deex.eu", nobroadcast=True) test = Asset("1.3.0", blockchain_instance=b1) test.refresh() b2 = DeEx("wss://node.deex.eu", nobroadcast=True) bts = Asset("1.3.0", blockchain_instance=b2) bts.refresh() self.assertEqual(test["symbol"], "TEST") self.assertEqual(bts["symbol"], "DX")
def test_default_connection(self): b1 = DeEx("wss://node.testnet.deex.eu", nobroadcast=True) set_shared_deex_instance(b1) test = Asset("1.3.0", blockchain_instance=b1) # Needed to clear cache test.refresh() b2 = DeEx("wss://node.deex.eu", nobroadcast=True) set_shared_deex_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"], "DX")