@pytest.mark.network
def test_search_should_exit_status_code_zero_when_find_packages(script):
 result = script.pip('search', 'pip')
 assert (result.returncode == SUCCESS)

@ pytest . mark . network def test_search_should_exit_status_code_zero_when_find_packages ( script ) : result = script . pip ( 'search' , 'pip' ) assert ( result . returncode == SUCCESS )
test search exit status code for package found .