fix cli unit test

This commit is contained in:
Lex Berezhny 2019-01-24 18:49:15 -05:00
parent 0373196707
commit 143353be44

View file

@ -56,7 +56,7 @@ class CLITest(AsyncioTestCase):
def test_help(self):
self.assertIn(
'usage: lbrynet [--help] [--version] [--api API]', self.shell(['--help'])
'Usage: lbrynet [-v] [--api HOST:PORT]', self.shell(['--help'])
)
# start is special command, with separate help handling
self.assertIn(
@ -72,12 +72,12 @@ class CLITest(AsyncioTestCase):
)
# account is a group, returns help implicitly
self.assertIn(
'{add,balance,create,decrypt,encrypt,fund,list,lock,max_address_gap,remove,send,set,unlock}',
'Return the balance of an account',
self.shell(['account'])
)
# account is a group, with explicit --help
self.assertIn(
'{add,balance,create,decrypt,encrypt,fund,list,lock,max_address_gap,remove,send,set,unlock}',
'Return the balance of an account',
self.shell(['account', '--help'])
)
# account add is a grouped command, returns usage implicitly