From: jacob.lyles Date: Thu, 29 Jul 2010 21:06:38 +0000 (-0700) Subject: abbreviate time edge case python2.5 unit test X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer/module-simplejson.encoder.html?a=commitdiff_plain;h=e276050d5ab2a937551bf0b1115610a5fad1fabe;p=tahoe-lafs%2Ftahoe-lafs.git abbreviate time edge case python2.5 unit test --- diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py index 37708641..be112896 100644 --- a/src/allmydata/test/test_web.py +++ b/src/allmydata/test/test_web.py @@ -3127,6 +3127,7 @@ class Util(ShouldFailMixin, testutil.ReallyEqualMixin, unittest.TestCase): self.failUnlessReallyEqual(common.abbreviate_time(0.123), "123ms") self.failUnlessReallyEqual(common.abbreviate_time(0.00123), "1.2ms") self.failUnlessReallyEqual(common.abbreviate_time(0.000123), "123us") + self.failUnlessReallyEqual(common.abbreviate_time(-123000), "-123000000000us") def test_abbreviate_rate(self): self.failUnlessReallyEqual(common.abbreviate_rate(None), "")