def METHOD_NAME(self):
    """Test the `clean_permission` expected behavior."""
    for permission, expected_string in [
        (
            PermissionA & PermissionB,
            " **(** PermissionA **AND** PermissionB **)** ",
        ),
        (
            PermissionA | PermissionB,
            " **(** PermissionA **OR** PermissionB **)** ",
        ),
        (
            ~PermissionA,
            " **(NOT** PermissionA **)** ",
        ),
        (
            PermissionA,
            "PermissionA",
        ),
        (
            (PermissionA & PermissionB) | ~PermissionC,
            (
                " **(**  **(** PermissionA **AND** PermissionB **)**  "
                "**OR**  **(NOT** PermissionC **)**  **)** "
            ),
        ),
    ]:
        with self.subTest(permission=permission):
            self.assertEqual(
                # mimic `get_permissions` by calling permission
                clean_permission(permission()),
                expected_string,
            )