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.

test_account.py 515B

123456789101112
  1. from models.account import TenantAccountRole
  2. def test_account_is_privileged_role() -> None:
  3. assert TenantAccountRole.ADMIN == 'admin'
  4. assert TenantAccountRole.OWNER == 'owner'
  5. assert TenantAccountRole.NORMAL == 'normal'
  6. assert TenantAccountRole.is_privileged_role(TenantAccountRole.ADMIN)
  7. assert TenantAccountRole.is_privileged_role(TenantAccountRole.OWNER)
  8. assert not TenantAccountRole.is_privileged_role(TenantAccountRole.NORMAL)
  9. assert not TenantAccountRole.is_privileged_role('')