def test_password_hash():
    password = 'DcosTestingPassword!@#'
    # only reads from STDOUT
    hash_pw = subprocess.check_output(['dcos_installer', '--hash-password', password])
    hash_pw = hash_pw.decode('ascii').strip('\n')
    assert passlib.hash.sha512_crypt.verify(password, hash_pw), 'Hash does not match password'
Tests that the password hashing method creates de-cryptable hash
dataset/ETHPy150Open dcos/dcos/pytest/test_installer_backend.py/test_password_hash