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): def test_help(self):
self.assertIn( 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 # start is special command, with separate help handling
self.assertIn( self.assertIn(
@ -72,12 +72,12 @@ class CLITest(AsyncioTestCase):
) )
# account is a group, returns help implicitly # account is a group, returns help implicitly
self.assertIn( 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']) self.shell(['account'])
) )
# account is a group, with explicit --help # account is a group, with explicit --help
self.assertIn( 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']) self.shell(['account', '--help'])
) )
# account add is a grouped command, returns usage implicitly # account add is a grouped command, returns usage implicitly