From e276050d5ab2a937551bf0b1115610a5fad1fabe Mon Sep 17 00:00:00 2001 From: "jacob.lyles" Date: Thu, 29 Jul 2010 14:06:38 -0700 Subject: [PATCH] abbreviate time edge case python2.5 unit test --- src/allmydata/test/test_web.py | 1 + 1 file changed, 1 insertion(+) 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), "") -- 2.45.2