def get_account_with_id(cls, client_id, account_id): ret = [ account.json() for account in AccountDAOImpl.get_account_with_id( int(client_id), int(account_id)) ] if not ret: return "Not a valid account" return ret
def test_get_all_accounts_for_client(self): assert AccountDAOImpl.get_account_with_id(1, 2)
def test_get_account_with_id(self): assert AccountDAOImpl.get_account_with_id(1, 13)