Beispiel #1
0
    def testForthBand(self):

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

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

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

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