Ejemplo n.º 1
0
    def testMakePlus(self):
        fact = facts.makeFact(3,5,plus)

        self.assertEquals(3,fact.left)
        self.assertEquals(5,fact.right)
        self.assertEquals(8,fact.result)
        self.assertEquals('+',fact.sign)
Ejemplo n.º 2
0
    def testMakeMinus(self):
        fact = facts.makeFact(9,5,minus)

        self.assertEquals(9,fact.left)
        self.assertEquals(5,fact.right)
        self.assertEquals(4,fact.result)
        self.assertEquals('-',fact.sign)