Beispiel #1
0
    def test(self):
        API.updatecsv()
        a=sqldb.getDBbalance(MSISDN)
	print a
        makecall.Call(dur)
        b=sqldb.getDBbalance(MSISDN)
	print b
        c=format(a-b, '.2f')
        m1=mbilling.billingcalc(dur,rate)
        m2=format(m1, '.2f')
        self.assertEqual(float(c),float(m2))
Beispiel #2
0
 def test_Billingcase10(self):
     API.updatecsv()
     a=sqldb.getDBbalance(MSISDN)
     makecall.Call(duration[9])
     b=sqldb.getDBbalance(MSISDN)
     self.assertEqual(a-b,mbilling.billingcalc(duration[9],rate))