class TestBankAccount(unittest.TestCase):
    def setUp(self):
        self.an_account = BankAccount("Foo", "1234-5")

    def it_crates_an_account(self):
        self.an_account | should | be_instance_of(BankAccount)

    def it_takes_a_report(self):
        self.an_account.deposit(100)
        self.an_account.report() | should | equal_to(("Foo", "1234-5", 100))

    def it_makes_account_operations(self):
        self.an_account.deposit(100)
        self.an_account.average_credit | should | be(100)
        self.an_account.draw(25)
        self.an_account.average_credit | should | be(75)
 def setUp(self):
     self.an_account = BankAccount("Foo", "1234-5")