def with_trap(self, name, count):
        self.trap_data = TrapData(trap_name=name, count=count)
        return self
Set trap data
dataset/ETHPy150Open tuturto/pyherc/src/pyherc/test/builders/item.py/ItemBuilder.with_trap