[Zope-Checkins] CVS: StandaloneZODB/Tools/tests - testzeopack.py:1.4

Jeremy Hylton jeremy@zope.com
Wed, 30 Jan 2002 16:19:58 -0500


Update of /cvs-repository/StandaloneZODB/Tools/tests
In directory cvs.zope.org:/tmp/cvs-serv4980/tests

Modified Files:
	testzeopack.py 
Log Message:
Check exit status.




=== StandaloneZODB/Tools/tests/testzeopack.py 1.3 => 1.4 ===
         self.set_inet_addr()
         self.start()
-        os.system("zeopack.py -h %s -p %s" % (self.host, self.port))
+        status = os.system("zeopack.py -h %s -p %s" % (self.host, self.port))
+        assert status == 0
         assert os.path.exists(self.path + ".old")
 
     def testPackDays(self):
         self.set_inet_addr()
         self.start()
-        os.system("zeopack.py -h %s -p %s -d 1" % (self.host, self.port))
+        status = os.system("zeopack.py -h %s -p %s -d 1" % (self.host,
+                                                            self.port))
         # Since we specified one day, nothing should get packed
+        assert status == 0
         assert not os.path.exists(self.path + ".old")
 
     def testAF_UNIXPack(self):
         self.addr = tempfile.mktemp(suffix=".zeo-socket")
         self.start()
-        os.system("zeopack.py -U %s" % self.addr)
+        status = os.system("zeopack.py -U %s" % self.addr)
+        assert status == 0
         assert os.path.exists(self.path + ".old")
+
+class UpTest(unittest.TestCase):
+    
+    def testUp(self):
+        status = os.system("zeoup.py -p 19")
+        # There is no ZEO server on port 19, so we should see non-zero
+        # exit status.
+        assert status != 0
 
 if __name__ == "__main__":
     unittest.main()