@pytest.mark.network
def test_search(script):
 output = script.pip('search', 'pip')
 assert ('The PyPA recommended tool for installing Python packages.' in output.stdout)

@ pytest . mark . network def test_search ( script ) : output = script . pip ( 'search' , 'pip' ) assert ( 'The PyPA recommended tool for installing Python packages.' in output . stdout )
end to end test of search command .