def setUp(self) -> None: receiver = bank.Receiver(name="adria", amount=50) self.command = bank.Balance(receiver)
def test_invoker_run(self): receiver = bank.Receiver(name='adria', amount=50) invoker = bank.Invoker(bank.Balance(receiver)) self.assertIsNone(invoker.run())
def setUp(self) -> None: self.receiver = bank.Receiver(name="adria", amount=50)
def setUp(self) -> None: self.receiver = bank.Receiver(name="adria", amount=50) self.command = bank.Deposit(self.receiver, 30.0)