class TestFloo(unittest.TestCase): def setUp(self): self.floo = Floo("abc") def test_sum_one_plus_one(self): r = self.floo.sum("a", "b") self.assertEqual(r, "b") def test_multiply_two_by_three(self): r = self.floo.mul("c", "ba") self.assertEqual(r, "ca") def test_increment(self): r = self.floo.inc("cc") self.assertEqual(r, "baa") def test_increment(self): r = self.floo.dec("ba") self.assertEqual(r, "c")
def setUp(self): self.floo = Floo("abc")