def test_parse_nav_steps():
 print sys.path
 arg_str = 'selector click'
 expected_output = {'runhandler': '_command_handler', 'args': {'commands': [{'action': 'click', 'options': [], 'selector': 'selector'}]}}
 actual_output = screenshot._parse_nav_steps(arg_str)
 assert_equal(expected_output, actual_output)
 arg_str = 'selector click | selector2 click'
 expected_output = {'runhandler': '_command_handler', 'args': {'commands': [{'action': 'click', 'options': [], 'selector': 'selector'}, {'action': 'click', 'options': [], 'selector': 'selector2'}]}}
 actual_output = screenshot._parse_nav_steps(arg_str)
 assert_equal(expected_output, actual_output)
 arg_str = ''
 expected_output = {'runhandler': '_command_handler', 'args': {'commands': []}}
 actual_output = screenshot._parse_nav_steps(arg_str)
 assert_equal(expected_output, actual_output)

def test_parse_nav_steps ( ) : print sys . path arg_str = 'selector click' expected_output = { 'runhandler' : '_command_handler' , 'args' : { 'commands' : [ { 'action' : 'click' , 'options' : [ ] , 'selector' : 'selector' } ] } } actual_output = screenshot . _parse_nav_steps ( arg_str ) assert_equal ( expected_output , actual_output ) arg_str = 'selector click | selector2 click' expected_output = { 'runhandler' : '_command_handler' , 'args' : { 'commands' : [ { 'action' : 'click' , 'options' : [ ] , 'selector' : 'selector' } , { 'action' : 'click' , 'options' : [ ] , 'selector' : 'selector2' } ] } } actual_output = screenshot . _parse_nav_steps ( arg_str ) assert_equal ( expected_output , actual_output ) arg_str = '' expected_output = { 'runhandler' : '_command_handler' , 'args' : { 'commands' : [ ] } } actual_output = screenshot . _parse_nav_steps ( arg_str ) assert_equal ( expected_output , actual_output )
test screenshot .