Example #1
0
 def test_apiclient_init(self):
     client = APIClient('username', 'password')
     assert str(client) == 'APIClient'
     assert repr(client) == '<APIClient [username]>'
     assert isinstance(client.betting, Betting)
     assert isinstance(client.account, Account)
     assert isinstance(client.marketdata, MarketData)
     assert isinstance(client.trading, Trading)
Example #2
0
 def test_api_client_init(self):
     client = APIClient('username', 'password')
     self.assertEqual(str(client), 'APIClient')
     self.assertEqual(repr(client), '<APIClient [username]>')
     self.assertIsInstance(client.betting, Betting)
     self.assertIsInstance(client.account, Account)
     self.assertIsInstance(client.marketdata, MarketData)
     self.assertIsInstance(client.trading, Trading)
Example #3
0
 def setUp(self):
     client = APIClient('username', 'password')
     self.market_data = MarketData(client)
Example #4
0
 def setUp(self):
     client = APIClient('username', 'password')
     self.betting = Betting(client)
Example #5
0
 def __init__(self):
     self.api = APIClient(username, password)
Example #6
0
 def setUp(self):
     client = APIClient('username', 'password')
     self.trading = Trading(client)
Example #7
0
 def setUp(self):
     client = APIClient('username', 'password')
     self.account = Account(client)