From: Brian Warner Date: Thu, 3 Jan 2008 21:34:59 +0000 (-0700) Subject: test_client.py: assert allmydata.__version__ is not unknown X-Git-Tag: allmydata-tahoe-0.7.0~41 X-Git-Url: https://git.rkrishnan.org/frontends/running.html?a=commitdiff_plain;h=6a2e5d4aeaa9c26100ea31eb8d5bd89df706cfc2;p=tahoe-lafs%2Ftahoe-lafs.git test_client.py: assert allmydata.__version__ is not unknown --- diff --git a/src/allmydata/test/test_client.py b/src/allmydata/test/test_client.py index 2a04c0ab..8bb04bfe 100644 --- 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()