示例#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)
示例#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)
示例#3
0
 def setUp(self):
     client = APIClient('username', 'password')
     self.market_data = MarketData(client)
示例#4
0
 def setUp(self):
     client = APIClient('username', 'password')
     self.betting = Betting(client)
示例#5
0
 def __init__(self):
     self.api = APIClient(username, password)
示例#6
0
 def setUp(self):
     client = APIClient('username', 'password')
     self.trading = Trading(client)
示例#7
0
 def setUp(self):
     client = APIClient('username', 'password')
     self.account = Account(client)