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:
65a8a8c
)
test_client.py: assert allmydata.__version__ is not unknown
author
Brian Warner
<warner@allmydata.com>
Thu, 3 Jan 2008 21:34:59 +0000
(14:34 -0700)
committer
Brian Warner
<warner@allmydata.com>
Thu, 3 Jan 2008 21:34:59 +0000
(14:34 -0700)
src/allmydata/test/test_client.py
patch
|
blob
|
history
diff --git
a/src/allmydata/test/test_client.py
b/src/allmydata/test/test_client.py
index 2a04c0ab144ada41c6357f253b16b7557ec9e608..8bb04bfef49577374a96473eba4a9fc6a26d20fe 100644
(file)
--- a/
src/allmydata/test/test_client.py
+++ b/
src/allmydata/test/test_client.py
@@
-120,7
+120,10
@@
class Basic(unittest.TestCase):
open(os.path.join(basedir, "vdrive.furl"), "w").write("")
c = client.Client(basedir)
mine, oldest = c.remote_get_versions()
- self.failUnlessEqual(mine, allmydata.__version__)
+ self.failUnlessEqual(mine, str(allmydata.__version__))
+ self.failIfEqual(str(allmydata.__version__), "unknown")
+ self.failUnless("." in str(allmydata.__version__),
+ "non-numeric version in '%s'" % allmydata.__version__)
def flush_but_dont_ignore(res):
d = flushEventualQueue()