From 6a2e5d4aeaa9c26100ea31eb8d5bd89df706cfc2 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 3 Jan 2008 14:34:59 -0700 Subject: [PATCH] test_client.py: assert allmydata.__version__ is not unknown --- src/allmydata/test/test_client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() -- 2.45.2