Exemple #1
0
 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()
Exemple #2
0
    def put(self, candy: str) -> core.DNone:
        arg = core.DStr(candy)

        return self.operate(
            core.Operation("core", "Box", core.opTuple("put", [arg])))