def testSub(self): c = Calculator() a = 9 b = 10 s = -1 sum = c.sub(a, b) self.assertEquals(s, sum)
def testAdd(self): c = Calculator() a = 9 b = 10 s = 19 sum = c.add(a, b) self.assertEquals(s, sum)
def testDiv(self): c = Calculator() a = 9 b = 10 s = 0.9 sum = c.div(a, b) self.assertEquals(s, sum)
def testMul(self): c = Calculator() a = 9 b = 10 s = 90 sum = c.mul(a, b) self.assertEquals(s, sum)
def __init__(self): Calculator.__init__(self, 2, 4)