def test_completion_option_for_command(script):
 (res, env) = setup_completion(script, 'pip search --', '2')
 assert ('--help' in res.stdout), 'autocomplete function could not complete ``--``'

def test_completion_option_for_command ( script ) : ( res , env ) = setup_completion ( script , 'pip search --' , '2' ) assert ( '--help' in res . stdout ) , 'autocomplete function could not complete ``--``'
test getting completion for -- in command .