def test_BoxMachineOperation(self, boxMachine) -> None: assert boxMachine.open() == core.DNone() assert boxMachine.close() == core.DNone() assert boxMachine.put("123") == core.DNone() assert boxMachine.get() == core.DStr()
def put(self, candy: str) -> core.DNone: arg = core.DStr(candy) return self.operate( core.Operation("core", "Box", core.opTuple("put", [arg])))