]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_client.py: assert allmydata.__version__ is not unknown
authorBrian Warner <warner@allmydata.com>
Thu, 3 Jan 2008 21:34:59 +0000 (14:34 -0700)
committerBrian Warner <warner@allmydata.com>
Thu, 3 Jan 2008 21:34:59 +0000 (14:34 -0700)
src/allmydata/test/test_client.py

index 2a04c0ab144ada41c6357f253b16b7557ec9e608..8bb04bfef49577374a96473eba4a9fc6a26d20fe 100644 (file)
@@ -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()