Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /FabianRutten_fastapi-permissions-alive /tests /test_all_constant.py
| """ tests for the _AllPermission class and All constant """ | |
| def test_all_instance(): | |
| """ is the "All" constant an instance of "_AllPermissions" """ | |
| from fastapi_permissions_alive import All, _AllPermissions | |
| assert isinstance(All, _AllPermissions) | |
| def test_all_permissions_contains(): | |
| """ does "All" contain everything """ | |
| from fastapi_permissions_alive import All | |
| for something in [True, False, None, "string", [], {}, 1, All]: | |
| assert something in All | |
| def test_all_permission_string(): | |
| """ test the string representation of the "All" constan """ | |
| from fastapi_permissions_alive import All | |
| assert str(All) == "permissions:*" | |
Xet Storage Details
- Size:
- 676 Bytes
- Xet hash:
- 5b9985df92de449de6644863cce83ea2ddc583163fd3ead7f11cc14a03a1e708
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.