def test_parse_focus():
 arg_str = 'id_with_no_annotation'
 expected_output = {'id': 'id_with_no_annotation', 'annotation': ''}
 actual_output = screenshot._parse_focus(arg_str)
 assert_equal(expected_output, actual_output)
 arg_str = 'id_with_annotation | test annotation'
 expected_output = {'id': 'id_with_annotation', 'annotation': 'test annotation'}
 actual_output = screenshot._parse_focus(arg_str)
 assert_equal(expected_output, actual_output)

def test_parse_focus ( ) : arg_str = 'id_with_no_annotation' expected_output = { 'id' : 'id_with_no_annotation' , 'annotation' : '' } actual_output = screenshot . _parse_focus ( arg_str ) assert_equal ( expected_output , actual_output ) arg_str = 'id_with_annotation | test annotation' expected_output = { 'id' : 'id_with_annotation' , 'annotation' : 'test annotation' } actual_output = screenshot . _parse_focus ( arg_str ) assert_equal ( expected_output , actual_output )
test screenshot .