class TestAccount(unittest.TestCase): def setUp(self): self.account = Account(0, 'xunda', 666) def it_show_the_statement_account(self): self.account.statement() |should| equal_to((0, 'xunda', 666)) def it_deposit_100_money_in_account(self): self.account.deposit(100) self.account.balance |should| equal_to(766) def it_withdraw_1000_money_off_account(self): self.account.withdraw(1000) self.account.balance |should| equal_to(-334)