예제 #1
0
 def test_make_new_depreciation(self):
     new = utils.make_new_depreciation(u'£123,456')
     new = utils.to_int(new)
     old = utils.to_int(u'£123,456')
     self.assertTrue(
         new >= old - 50 and new <= old + 50
     )
예제 #2
0
 def test_to_int(self):
     self.assertEqual(utils.to_int(u'£123,456'), 123456)