Пример #1
0
    def test_get_account_by_name(self):
        lcc.set_step("Get account by name")
        self.send_request(self.get_request(self.__get_account_by_name),
                          self.__identifier)
        self.__resp = self.get_response()

        lcc.set_step("Check account by name")
        check_that(
            "'init2'",
            self.__resp["result"],
            is_dict(self.get_expected(self.__get_account_by_name)),
        )
Пример #2
0
    def test_get_config(self):
        lcc.set_step("Get config")
        self.send_request(self.get_request(self.__get_config),
                          self.__identifier)
        self.__resp = self.get_response()

        lcc.set_step("Check config info")
        check_that(
            "'config'",
            self.__resp["result"],
            is_dict(self.get_expected(self.__get_config)),
        )
Пример #3
0
    def test_get_global_properties(self):
        lcc.set_step("Get global properties")
        self.send_request(self.get_request(self.__get_global_properties),
                          self.__identifier)
        self.__resp = self.get_response()

        lcc.set_step("Check global properties info")
        check_that(
            "'global properties'",
            self.__resp["result"],
            is_dict(self.get_expected(self.__get_global_properties)),
        )
Пример #4
0
    def test_get_transaction(self):
        lcc.set_step("Retrieve transaction")
        self.send_request(self.get_request(self.__get_transaction),
                          self.__identifier)
        self.__resp = self.get_response()

        lcc.set_step("Check transaction info")
        check_that(
            "'transaction info'",
            self.__resp["result"],
            is_dict(self.get_expected(self.__get_transaction)),
        )
Пример #5
0
    def test_get_block_header(self):
        lcc.set_step("Retrieve header of signed block")
        self.send_request(self.get_request(self.__get_block_header),
                          self.__identifier)
        self.__resp = self.get_response()

        lcc.set_step("Check block header info")
        check_that(
            "'block header info'",
            self.__resp["result"],
            is_dict(self.get_expected(self.__get_block_header)),
        )
Пример #6
0
    def test_get_committee_member_by_account(self):
        lcc.set_step("Get committee members by account")
        self.send_request(
            self.get_request(self.__get_committee_member_by_account),
            self.__identifier)
        self.__resp = self.get_response()

        lcc.set_step("Check get committee members by account")
        check_that(
            "'committee members by account'",
            self.__resp["result"],
            is_dict(self.get_expected(self.__get_committee_member_by_account)),
        )