def METHOD_NAME(api_client, observable_property):
    services = observable_property.services.all()
    assert len(services) > 0
    units = set((unit for service in services for unit in service.units.all()))
    assert len(units) > 0
    for unit in units:
        url = (
            reverse("unit-detail", kwargs={"pk": unit.pk})
            + "?include=observable_properties"
        )
        response = api_client.get(url)
        assert "observable_properties" in response.data
        observable_properties = response.data["observable_properties"]
        matching_properties = [
            p for p in observable_properties if p["id"] == observable_property.id
        ]
        assert len(matching_properties) == 1
        prop = matching_properties[0]
        match_observable_property_object_to_dict(observable_property, prop)
        if prop["observation_type"] == "categorical":
            assert "allowed_values" in prop
            assert len(prop["allowed_values"]) > 0
            for v in prop["allowed_values"]:
                assert "identifier" in v
                assert "name" in v
                assert "description" in v