def test_get_all_asset_holders(self): lcc.set_step("Get all asset holders") self.get_holders() lcc.set_step("Check asset_id and count of all asset holders") check_that( "'contract result'", self.resp_all_asset_holders["result"], is_(self.get_expected(self.__get_all_asset_holders)), )
def test_get_contract_history(self): lcc.set_step("Get contract history") self.send_request(self.get_request(self.__get_contract_history), self.__identifier) self.__resp = self.get_response() lcc.set_step("Check get contract history") check_that( "'contract history'", self.__resp["result"], is_(self.get_expected(self.__get_contract_history)), )
def test_get_account_history_operations(self): lcc.set_step("Get account history operations") self.send_request(self.get_request(self.__get_account_history_operations), self.__identifier) self.__resp = self.get_response() lcc.set_step("Check get account history operations") check_that( "'account history operations'", self.__resp["result"], is_(self.get_expected(self.__get_account_history_operations)), )
def test_get_all_contracts(self): lcc.set_step("Get all contracts") self.send_request(self.get_request(self.__get_all_contracts), self.__identifier) self.__resp = self.get_response() lcc.set_step("Check get all contracts") check_that( "'all contracts'", self.__resp["result"], is_(self.get_expected(self.__get_all_contracts)), )
def test_get_workers_by_account(self): lcc.set_step("Get workers by account") self.send_request(self.get_request(self.__get_workers_by_account), self.__identifier) self.__resp = self.get_response() lcc.set_step("Check get workers by account") check_that( "'workers by account'", self.__resp["result"], is_(self.get_expected(self.__get_workers_by_account)), )
def test_get_proposed_transactions(self): lcc.set_step("Get proposed transactions") self.send_request(self.get_request(self.__get_proposed_transactions, ), self.__identifier) self.__resp = self.get_response() lcc.set_step("Check get proposed transactions") check_that( "'proposed transactions'", self.__resp["result"], is_(self.get_expected(self.__get_proposed_transactions)), )
def test_get_margin_positions(self): lcc.set_step("Get margin positions") self.send_request(self.get_request(self.__get_margin_positions), self.__identifier) self.__resp = self.get_response() lcc.set_step("Check get margin positions") check_that( "'margin positions'", self.__resp["result"], is_(self.get_expected(self.__get_margin_positions)), )
def test_get_settle_orders(self): lcc.set_step("Get settle orders") self.send_request(self.get_request(self.__get_settle_orders), self.__identifier) self.__resp = self.get_response() lcc.set_step("Check get settle orders") check_that( "'settle orders'", self.__resp["result"], is_(self.get_expected(self.__get_settle_orders)), )
def test_get_contract_balances(self): lcc.set_step("Get contract balances") self.send_request(self.get_request(self.__get_contract_balances), self.__identifier) self.__resp = self.get_response() lcc.set_step("Check get contract balances") check_that( "'contract balances'", self.__resp["result"], is_(self.get_expected(self.__get_contract_balances)), )
def test_get_required_fees(self): lcc.set_step("Get required fees") params = [self.get_expected(self.__contract_operations), "1.3.0"] self.send_request(self.get_request(self.__get_required_fees, params), self.__identifier) self.__resp = self.get_response() lcc.set_step("Check get required fees") check_that( "'required fees'", self.__resp["result"], is_(self.get_expected(self.__get_required_fees)), )
def test_get_vested_balances(self): # todo нет нужных balance_ids lcc.set_step("Get vested balances") self.send_request(self.get_request(self.__get_vested_balances), self.__identifier) self.__resp = self.get_response() lcc.set_step("Check get vested balances") check_that( "'vested balances'", self.__resp["result"], is_(self.get_expected(self.__get_account_balances)), )
def test_get_account_references(self): lcc.set_step("Get account references") # todo нет необходимого аккаунта для проверки self.send_request(self.get_request(self.__get_account_references), self.__identifier) self.__resp = self.get_response() lcc.set_step("Check account references") check_that( "'1.2.28'", self.__resp["result"], is_(self.get_expected(self.__get_account_references)), )
def test_get_potential_address_signatures(self): lcc.set_step("Get potential address signatures") self.send_request( self.get_request(self.__get_potential_address_signatures, [self.get_expected(self.__get_transaction)]), self.__identifier) self.__resp = self.get_response() lcc.set_step("Check get potential address signatures") check_that( "'potential address signatures'", self.__resp["result"], is_(self.get_expected(self.__get_potential_address_signatures)), )