From 149a83545fe45d1b66d0ee525ee29ccce5c2288d Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Mon, 22 Jul 2013 11:52:51 -0400 Subject: [PATCH] TST: basic test for reading of a bogus jail --- testcases/clientreadertestcase.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/testcases/clientreadertestcase.py b/testcases/clientreadertestcase.py index 695b3877..4e8cdd9d 100644 --- a/testcases/clientreadertestcase.py +++ b/testcases/clientreadertestcase.py @@ -126,6 +126,13 @@ class JailsReaderTest(unittest.TestCase): # commands to communicate to the server self.assertEqual(comm_commands, []) + # We should not "read" some bogus jail + old_comm_commands = comm_commands[:] # make a copy + self.assertFalse(jails.getOptions("BOGUS")) + # and there should be no side-effects + self.assertEqual(jails.convert(), old_comm_commands) + + def testReadStockJailConfForceEnabled(self): # more of a smoke test to make sure that no obvious surprises # on users' systems when enabling shipped jails