pytest: Check that we disable on closing and permfail.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker
2018-01-24 14:18:12 +01:00
committed by Rusty Russell
parent e463386d75
commit dafd000c2a
2 changed files with 21 additions and 1 deletions

View File

@@ -90,7 +90,7 @@ class TailableProc(object):
self.proc.kill()
self.proc.wait()
self.thread.join()
def tail(self):
"""Tail the stdout of the process and remember it.
@@ -334,6 +334,9 @@ class LightningNode(object):
self.bitcoin.generate_block(6)
self.daemon.wait_for_log('-> CHANNELD_NORMAL|STATE_NORMAL')
def getactivechannels(self):
return [c for c in self.rpc.listchannels()['channels'] if c['active']]
def db_query(self, query):
db = sqlite3.connect(os.path.join(self.daemon.lightning_dir, "lightningd.sqlite3"))
db.row_factory = sqlite3.Row