def METHOD_NAME(test_path):
    with open_new_securely_permissioned_file(test_path):
        pass
    st = os.stat(test_path)
    expected_mode = stat.S_IRUSR | stat.S_IWUSR
    actual_mode = st.st_mode & (stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
    assert expected_mode == actual_mode