Team Ai
Apppublic

Underground-Digital/Workflow-Engine

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
test_account.py15 linesDownload Raw Back to models
1from models.account import TenantAccountRole2 3 4def test_account_is_privileged_role() -> None:5    assert TenantAccountRole.ADMIN == "admin"6    assert TenantAccountRole.OWNER == "owner"7    assert TenantAccountRole.EDITOR == "editor"8    assert TenantAccountRole.NORMAL == "normal"9 10    assert TenantAccountRole.is_privileged_role(TenantAccountRole.ADMIN)11    assert TenantAccountRole.is_privileged_role(TenantAccountRole.OWNER)12    assert not TenantAccountRole.is_privileged_role(TenantAccountRole.NORMAL)13    assert not TenantAccountRole.is_privileged_role(TenantAccountRole.EDITOR)14    assert not TenantAccountRole.is_privileged_role("")15