def test_handle_args_ganbreeder_login_no_keys(self): argv = [ '-u', '*****@*****.**', # user name '-p', 'password123', # password ] try: args = cli.handle_args(argv=argv) except: return # this is supposed to cause an exception validate_args(args)
def test_handle_args_ganbreeder_login_correct(self): argv = [ '-u', '*****@*****.**', # user name '-p', 'password123', # password '-k', 'aaaa', 'bbbb', 'cccc', # keys ] args = cli.handle_args(argv=argv) validate_args(args)
def test_handle_args_ganbreeder_login_no_pass(self): argv = [ '-u', '*****@*****.**', # user name '-k', 'aaaa', 'bbbb', 'cccc', # keys ] try: args = cli.handle_args(argv=argv) except: return # this is supposed to cause an exception validate_args(args)
def test_handle_args_ganbreeder_login_no_user(self): argv = [ '-p', 'password123', # password '-k', 'aaaa', 'bbbb', 'cccc', # keys ] try: args = cli.handle_args(argv=argv) except: return # this is supposed to cause an exception validate_args(args)
def test_handle_args_ganbreeder_login_empty(self): argv = [] args = cli.handle_args(argv=argv) validate_args(args)