def test_parse_login():
 args = ('username', 'password', '')
 expected_output = {'runhandler': '_login_handler', 'args': {'username': 'username', 'password': 'password', 'submit': False}}
 actual_output = screenshot._parse_login(*args)
 assert_equal(expected_output, actual_output)
 args = ('username', 'password', 'submit')
 expected_output = {'runhandler': '_login_handler', 'args': {'username': 'username', 'password': 'password', 'submit': True}}
 actual_output = screenshot._parse_login(*args)
 assert_equal(expected_output, actual_output)

def test_parse_login ( ) : args = ( 'username' , 'password' , '' ) expected_output = { 'runhandler' : '_login_handler' , 'args' : { 'username' : 'username' , 'password' : 'password' , 'submit' : False } } actual_output = screenshot . _parse_login ( * args ) assert_equal ( expected_output , actual_output ) args = ( 'username' , 'password' , 'submit' ) expected_output = { 'runhandler' : '_login_handler' , 'args' : { 'username' : 'username' , 'password' : 'password' , 'submit' : True } } actual_output = screenshot . _parse_login ( * args ) assert_equal ( expected_output , actual_output )
test screenshot .