lbry-sdk/tests/unit/test_ledger.py
2018-06-13 23:00:53 -05:00

15 lines
363 B
Python

from twisted.trial import unittest
from twisted.internet import defer
from torba.basedatabase import BaseSQLiteWalletStorage
class TestDatabase(unittest.TestCase):
def setUp(self):
self.db = BaseSQLiteWalletStorage(':memory:')
return self.db.start()
@defer.inlineCallbacks
def test_empty_db(self):
result = yield self.db.