lbry-sdk/tests/unit/db/test_event.py

11 lines
287 B
Python
Raw Normal View History

2020-06-22 01:53:18 +02:00
from unittest import TestCase
from lbry.db.query_context import Event
class TestDBEvents(TestCase):
def test_enum(self):
2020-08-20 19:31:58 +02:00
self.assertEqual(Event.get_by_id(1).name, "client.sync.claims.insert")
self.assertEqual(Event.get_by_name("client.sync.claims.insert").id, 1)