diff --git a/tests/integration/test_resolve_command.py b/tests/integration/test_resolve_command.py index bf8fbb74f..52c2a097e 100644 --- a/tests/integration/test_resolve_command.py +++ b/tests/integration/test_resolve_command.py @@ -60,7 +60,7 @@ class ResolveCommand(CommandTestCase): self.assertEqual(claim['claims_in_channel'], 0) # resolve handles invalid data - txid = await self.blockchain.claim_name("gibberish", "cafecafe", "0.1") + txid = await self.blockchain_claim_name("gibberish", "cafecafe", "0.1") await self.generate(1) response = await self.resolve("lbry://gibberish") self.assertSetEqual({'lbry://gibberish'}, set(response)) diff --git a/tests/integration/testcase.py b/tests/integration/testcase.py index 6663ff43f..1000c7074 100644 --- a/tests/integration/testcase.py +++ b/tests/integration/testcase.py @@ -150,6 +150,9 @@ class CommandTestCase(IntegrationTestCase): await self.blockchain.generate(blocks) await self.ledger.on_header.where(self.blockchain.is_expected_block) + def blockchain_claim_name(self, name: str, value: str, amount: str): + return self.blockchain._cli_cmnd('claimname', name, value, amount) + async def out(self, awaitable): """ Converts Daemon API call results (dictionary) to JSON and then back to a dictionary. """