You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
| 123456789101112 |
- from models.account import TenantAccountRole
-
-
- def test_account_is_privileged_role() -> None:
- assert TenantAccountRole.ADMIN == 'admin'
- assert TenantAccountRole.OWNER == 'owner'
- assert TenantAccountRole.NORMAL == 'normal'
-
- assert TenantAccountRole.is_privileged_role(TenantAccountRole.ADMIN)
- assert TenantAccountRole.is_privileged_role(TenantAccountRole.OWNER)
- assert not TenantAccountRole.is_privileged_role(TenantAccountRole.NORMAL)
- assert not TenantAccountRole.is_privileged_role('')
|