blob: 460344fcd15f1c99babec2cc3a1ee4355d4cd05e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
"""Tests to verify the privileges check works."""
import pytest
from gn_libs.privileges import check
@pytest.mark.unit_test
@pytest.mark.parametrize(
"spec,privileges,expected",
())
def test_check(spec, privileges, expected):
"""
GIVEN: A privileges-check specification, and a tuple of privileges
WHEN: A check is performed
THEN: Verify that the check returns the expected value
"""
assert check(spec, privileges) == expected
|