def METHOD_NAME(
    self,
    mocked__get_client,
    mocked__get_policies,
    mocked_get_policy_definitions,
):
    """verify that client in the policy is honored for get_partition"""
    m_policy = {
        "general": {
            "realm": "*",
            "active": "True",
            "client": "127.0.0.1/24",
            "user": "*",
            "time": "* * * * * *;",
            "action": "partition=2",
            "scope": "enrollment",
        }
    }
    mocked_get_policy_definitions.return_value = {
        "enrollment": {
            "partition": {"type": "int", "desc": "partition"},
        }
    }
    mocked__get_policies.return_value = m_policy
    user = LinotpUser(login="user", realm="defaultrealm")
    mocked__get_client.return_value = "127.0.0.1"
    assert get_partition(["defaultrealm"], user=user) == 2
    mocked__get_client.return_value = "128.0.0.1"
    assert get_partition(["defaultrealm"], user=user) == 0