def test_parse_command():
 arg_str = 'selector click'
 expected_output = {'selector': 'selector', 'action': 'click', 'options': []}
 actual_output = screenshot._parse_command(arg_str)
 assert_equal(expected_output, actual_output)
 arg_str = 'selector submit'
 expected_output = {'selector': 'selector', 'action': 'submit', 'options': []}
 actual_output = screenshot._parse_command(arg_str)
 assert_equal(expected_output, actual_output)
 arg_str = 'selector send_keys'
 expected_output = {'selector': 'selector', 'action': 'send_keys', 'options': []}
 actual_output = screenshot._parse_command(arg_str)
 assert_equal(expected_output, actual_output)
 arg_str = 'selector send_keys keystroke1 keystroke2'
 expected_output = {'selector': 'selector', 'action': 'send_keys', 'options': ['keystroke1', 'keystroke2']}
 actual_output = screenshot._parse_command(arg_str)
 assert_equal(expected_output, actual_output)

def test_parse_command ( ) : arg_str = 'selector click' expected_output = { 'selector' : 'selector' , 'action' : 'click' , 'options' : [ ] } actual_output = screenshot . _parse_command ( arg_str ) assert_equal ( expected_output , actual_output ) arg_str = 'selector submit' expected_output = { 'selector' : 'selector' , 'action' : 'submit' , 'options' : [ ] } actual_output = screenshot . _parse_command ( arg_str ) assert_equal ( expected_output , actual_output ) arg_str = 'selector send_keys' expected_output = { 'selector' : 'selector' , 'action' : 'send_keys' , 'options' : [ ] } actual_output = screenshot . _parse_command ( arg_str ) assert_equal ( expected_output , actual_output ) arg_str = 'selector send_keys keystroke1 keystroke2' expected_output = { 'selector' : 'selector' , 'action' : 'send_keys' , 'options' : [ 'keystroke1' , 'keystroke2' ] } actual_output = screenshot . _parse_command ( arg_str ) assert_equal ( expected_output , actual_output )
test screenshot .