forked from LBRYCommunity/lbry-sdk
test for timestamp field on resolve
This commit is contained in:
parent
6e483cba8d
commit
3127cd11cf
1 changed files with 8 additions and 0 deletions
|
@ -38,6 +38,14 @@ class ResolveCommand(CommandTestCase):
|
||||||
self.assertEqual(claim['claim']['channel_name'], '@abc')
|
self.assertEqual(claim['claim']['channel_name'], '@abc')
|
||||||
self.assertEqual(claim['certificate']['name'], '@abc')
|
self.assertEqual(claim['certificate']['name'], '@abc')
|
||||||
self.assertEqual(claim['claims_in_channel'], 0)
|
self.assertEqual(claim['claims_in_channel'], 0)
|
||||||
|
self.assertEqual(
|
||||||
|
claim['claim']['timestamp'],
|
||||||
|
self.ledger.headers[claim['claim']['height']]['timestamp']
|
||||||
|
)
|
||||||
|
self.assertEqual(
|
||||||
|
claim['certificate']['timestamp'],
|
||||||
|
self.ledger.headers[claim['certificate']['height']]['timestamp']
|
||||||
|
)
|
||||||
|
|
||||||
# resolving claim foo by itself
|
# resolving claim foo by itself
|
||||||
response = await self.resolve('lbry://foo')
|
response = await self.resolve('lbry://foo')
|
||||||
|
|
Loading…
Reference in a new issue