def testGetCopyAccounts(self): tc = TradingCenter() tc.createAccountWithMetrix(100000, 0) tc.createAccountWithMetrix(200000, 0) accounts = tc.getCopyAccounts('.*') print([str(account) for account in accounts]) self.assertEquals(2, len(accounts))
def testGetCopyAccount(self): tc = TradingCenter() accountId1 = tc.createAccountWithMetrix(100000, 0) account = tc.getCopyAccount(accountId1) print(account) self.assertEquals(100000, account.cash)