test invalid signature to be False, not accepting None

This commit is contained in:
Victor Shyba 2019-04-02 19:09:17 -03:00 committed by Lex Berezhny
parent 3acabec4bb
commit 47bc1526f7

View file

@ -527,10 +527,10 @@ class StreamCommands(CommandTestCase):
response = await self.resolve('lbry://@abc/on-channel-claim') response = await self.resolve('lbry://@abc/on-channel-claim')
self.assertNotIn('claim', response['lbry://@abc/on-channel-claim']) self.assertNotIn('claim', response['lbry://@abc/on-channel-claim'])
response = await self.resolve('lbry://on-channel-claim') response = await self.resolve('lbry://on-channel-claim')
self.assertFalse(response['lbry://on-channel-claim']['claim']['signature_is_valid']) self.assertIs(False, response['lbry://on-channel-claim']['claim']['signature_is_valid'])
direct_uri = 'lbry://on-channel-claim#' + orphan_claim_id direct_uri = 'lbry://on-channel-claim#' + orphan_claim_id
response = await self.resolve(direct_uri) response = await self.resolve(direct_uri)
self.assertFalse(response[direct_uri]['claim']['signature_is_valid']) self.assertIs(False, response[direct_uri]['claim']['signature_is_valid'])
await self.stream_abandon(claim_id=orphan_claim_id) await self.stream_abandon(claim_id=orphan_claim_id)
uri = 'lbry://@abc/on-channel-claim' uri = 'lbry://@abc/on-channel-claim'