def test_from_dict_recursive_amount(self): check_create = CheckCreate.from_dict(check_create_dict) expected_dict = { **check_create_dict, "transaction_type": "CheckCreate", "flags": 0, } self.assertEqual(expected_dict, check_create.to_dict())
def test_from_dict_recursive_transaction_tx_json(self): transaction = CheckCreate.from_dict(check_create_dict) sign_dict = {"secret": secret, "tx_json": transaction.to_dict()} sign = Sign.from_dict(sign_dict) expected_dict = { **sign_dict, "tx_json": transaction.to_dict(), "method": "sign", "fee_mult_max": 10, "fee_div_max": 1, "offline": False, } self.assertEqual(expected_dict, sign.to_dict())