def test_get_permissions(path, expected): assert packaging._get_permissions(path) == expected
def test_get_permissions_unknown_path(): with pytest.raises(packaging.PackageException): assert packaging._get_permissions("lala")