diff --git a/tests/integration/claims/test_claim_commands.py b/tests/integration/claims/test_claim_commands.py index 576886376..7febaed52 100644 --- a/tests/integration/claims/test_claim_commands.py +++ b/tests/integration/claims/test_claim_commands.py @@ -405,6 +405,17 @@ class ClaimSearchCommand(ClaimTestCase): not_channel_ids=[chan2_id], has_channel_signature=True, valid_channel_signature=True) await match([], not_channel_ids=[chan1_id, chan2_id], has_channel_signature=True, valid_channel_signature=True) + 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_limit_claims_per_channel(self): match = self.assertFindsClaims chan1_id = self.get_claim_id(await self.channel_create('@chan1'))