def test_basic(script, tmpdir):
 expected = '--hash=sha256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824'
 result = script.pip('hash', _hello_file(tmpdir))
 assert (expected in str(result))

def test_basic ( script , tmpdir ) : expected = '--hash=sha256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824' result = script . pip ( 'hash' , _hello_file ( tmpdir ) ) assert ( expected in str ( result ) )
run pip hash through its default behavior .