def METHOD_NAME(self, lldpd1, lldpd, lldpcli, namespaces, replace_file):
    with namespaces(2):
        # /sys/class/dmi/id/*
        for what, value in dict(
            product_version="1.14",
            bios_version="1.10",
            product_serial="45872512",
            sys_vendor="Spectacular",
            product_name="Workstation",
            chassis_asset_tag="487122",
        ).items():
            replace_file("/sys/class/dmi/id/{}".format(what), value)
        lldpd("-M", "1")
    with namespaces(1):
        out = lldpcli("-f", "keyvalue", "show", "neighbors", "details")
        assert out["lldp.eth0.chassis.name"] == "ns-2.example.com"
        assert out["lldp.eth0.lldp-med.inventory.hardware"] == "1.14"
        assert out["lldp.eth0.lldp-med.inventory.firmware"] == "1.10"
        assert out["lldp.eth0.lldp-med.inventory.serial"] == "45872512"
        assert out["lldp.eth0.lldp-med.inventory.manufacturer"] == "Spectacular"
        assert out["lldp.eth0.lldp-med.inventory.model"] == "Workstation"
        assert out["lldp.eth0.lldp-med.inventory.asset"] == "487122"
        assert out["lldp.eth0.lldp-med.inventory.software"] == platform.release()