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

def test_completion_for_default_parameters ( script ) : ( res , env ) = setup_completion ( script , 'pip --' , '1' ) assert ( '--help' in res . stdout ) , 'autocomplete function could not complete ``--``'
test getting completion for -- should contain --help .