make review changes

This commit is contained in:
jessop 2020-01-29 16:08:20 -05:00
parent 73c958222b
commit f98e3320ae

View file

@ -73,12 +73,6 @@ class ClaimSearchCommand(ClaimTestCase):
(result['txid'], result['claim_id'])
)
async def assertFindsNoClaims(self, **kwargs):
kwargs.setdefault('order_by', ['height', '^name'])
results = await self.claim_search(**kwargs)
print(results)
self.assertEqual(0, len(results))
async def test_basic_claim_search(self):
await self.create_channel()
channel_txo = self.channel['outputs'][0]
@ -335,11 +329,11 @@ class ClaimSearchCommand(ClaimTestCase):
await self.assertFindsClaims([image, video], media_types=['video/mp4', 'image/png'])
# duration
await self.assertFindsClaim(video, duration=f'>{14}')
await self.assertFindsClaim(video, duration=f'<{16}')
await self.assertFindsClaim(video, duration='>14')
await self.assertFindsClaim(video, duration='<16')
await self.assertFindsClaim(video, duration=15)
await self.assertFindsNoClaims(duration=f'>{100}')
await self.assertFindsNoClaims(duration=f'<{14}')
await self.assertFindsClaims([], duration='>100')
await self.assertFindsClaims([], duration='<14')
async def test_search_by_text(self):
chan1_id = self.get_claim_id(await self.channel_create('@SatoshiNakamoto'))