]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
abbreviate time edge case python2.5 unit test
authorjacob.lyles <jacob.lyles@gmail.com>
Thu, 29 Jul 2010 21:06:38 +0000 (14:06 -0700)
committerjacob.lyles <jacob.lyles@gmail.com>
Thu, 29 Jul 2010 21:06:38 +0000 (14:06 -0700)
src/allmydata/test/test_web.py

index 377086416b76dc264cb14272ad93c9cc0e837301..be1128968257ce0d605e3a7284bda8fd38d8e3a6 100644 (file)
@@ -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), "")