示例#1
0
文件: floo_test.py 项目: jkklapp/floo
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")
示例#2
0
文件: floo_test.py 项目: jkklapp/floo
 def setUp(self):
     self.floo = Floo("abc")