def test_completion_for_unknown_shell(script):
 error_msg = 'no such option: --myfooshell'
 result = script.pip('completion', '--myfooshell', expect_error=True)
 assert (error_msg in result.stderr), 'tests for an unknown shell failed'

def test_completion_for_unknown_shell ( script ) : error_msg = 'no such option: --myfooshell' result = script . pip ( 'completion' , '--myfooshell' , expect_error = True ) assert ( error_msg in result . stderr ) , 'tests for an unknown shell failed'
test getting completion for an unknown shell .