From b62cdb35edba1007a6688c37c1e9165d05b202be Mon Sep 17 00:00:00 2001 From: zeppi Date: Thu, 24 Mar 2022 19:26:51 -0400 Subject: [PATCH] test for fix es should --- tests/integration/claims/test_claim_commands.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/integration/claims/test_claim_commands.py b/tests/integration/claims/test_claim_commands.py index 3d8ea5f85..3de21b50a 100644 --- a/tests/integration/claims/test_claim_commands.py +++ b/tests/integration/claims/test_claim_commands.py @@ -421,6 +421,17 @@ class ClaimSearchCommand(ClaimTestCase): limit_claims_per_channel=3, claim_type='stream' ) + async def test_no_source_and_valid_channel_signature_and_media_type(self): + await self.channel_create('@spam2', '1.0') + await self.stream_create('barrrrrr', '1.0', channel_name='@spam2', file_path=self.video_file_name) + paradox_no_source_claims = await self.claim_search(has_no_source=True, valid_channel_signature=True, + media_type="video/mp4") + mp4_claims = await self.claim_search(media_type="video/mp4") + no_source_claims = await self.claim_search(has_no_source=True, valid_channel_signature=True) + self.assertEqual(0, len(paradox_no_source_claims)) + self.assertEqual(1, len(no_source_claims)) + self.assertEqual(1, len(mp4_claims)) + async def test_no_duplicates(self): await self.generate(10) match = self.assertFindsClaims