Commit 171981ae authored by Jeremy Hylton's avatar Jeremy Hylton

Add test of zeopack to non-existent server.

parent 032b6e96
......@@ -19,7 +19,11 @@ import unittest
class PackerTests(StorageTestBase):
def setUp(self):
self.started = 0
def start(self):
self.started =1
self.path = tempfile.mktemp(suffix=".fs")
self._storage = FileStorage(self.path)
self.db = ZODB.DB(self._storage)
......@@ -31,6 +35,8 @@ class PackerTests(StorageTestBase):
self._dostore()
def tearDown(self):
if not self.started:
return
self.db.close()
self._storage.close()
self.exit.close()
......@@ -77,6 +83,10 @@ class PackerTests(StorageTestBase):
assert status == 0
assert os.path.exists(self.path + ".old")
def testNoServer(self):
status = os.system("zeopack.py -p 19")
assert status != 0
class UpTest(unittest.TestCase):
def testUp(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment