def test_install_exit_status_code_when_no_requirements(script):
 result = script.pip('install', expect_error=True)
 assert ('You must give at least one requirement to install' in result.stderr)
 assert (result.returncode == ERROR)

def test_install_exit_status_code_when_no_requirements ( script ) : result = script . pip ( 'install' , expect_error = True ) assert ( 'You must give at least one requirement to install' in result . stderr ) assert ( result . returncode == ERROR )
test install exit status code when no requirements specified .