Ejemplo n.º 1
0
    def testForthBand(self):

        calcObj = Calculator(900000)
        self.assertEqual(calcObj.Calc(), 64250, "Should be 64250")
Ejemplo n.º 2
0
    def testThirdBand(self):

        calcObj = Calculator(500000)
        self.assertEqual(calcObj.Calc(), 21250, "Should be 21250")
Ejemplo n.º 3
0
    def testFirstBand(self):

        calcObj = Calculator(200000)
        self.assertEqual(calcObj.Calc(), 0, "Should be Zero")
Ejemplo n.º 4
0
    def testSecondBand(self):

        calcObj = Calculator(275000)
        self.assertEqual(calcObj.Calc(), 1250, "Should be 1250")
Ejemplo n.º 5
0
def main():
    for arg in sys.argv[1:]:
        priceArg = int(arg)
        calcObj = Calculator(priceArg)
        print(calcObj.Calc())