Example #1
0
 def on_response(response):
     json_response = json.twisted_loads(response)
     self.assertIn('transactions', json_response)
     self.assertEqual(len(json_response['transactions']), 1)
Example #2
0
 def on_response(response):
     json_response = json.twisted_loads(response)
     self.assertIn('bids', json_response)
     self.assertEqual(len(json_response['bids']), 1)
     self.assertIn('ticks', json_response['bids'][0])
     self.assertEqual(len(json_response['bids'][0]['ticks']), 1)
Example #3
0
 def on_response(response):
     json_response = json.twisted_loads(response)
     self.assertIn('wallets', json_response)
     self.assertGreaterEqual(len(json_response['wallets']), 4)
Example #4
0
 def on_response(response):
     json_response = json.twisted_loads(response)
     self.assertIn('balance', json_response)
     self.assertGreater(json_response['balance']['available'], 0)
Example #5
0
 def on_response(response):
     json_response = json.twisted_loads(response)
     self.assertIn('transactions', json_response)