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