projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23c649c
)
abbreviate time edge case python2.5 unit test
author
jacob.lyles
<jacob.lyles@gmail.com>
Thu, 29 Jul 2010 21:06:38 +0000
(14:06 -0700)
committer
jacob.lyles
<jacob.lyles@gmail.com>
Thu, 29 Jul 2010 21:06:38 +0000
(14:06 -0700)
src/allmydata/test/test_web.py
patch
|
blob
|
history
diff --git
a/src/allmydata/test/test_web.py
b/src/allmydata/test/test_web.py
index 377086416b76dc264cb14272ad93c9cc0e837301..be1128968257ce0d605e3a7284bda8fd38d8e3a6 100644
(file)
--- 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), "")