TST: basic test for reading of a bogus jail

pull/304/head
Yaroslav Halchenko 2013-07-22 11:52:51 -04:00
parent b92316ff17
commit 149a83545f
1 changed files with 7 additions and 0 deletions

View File

@ -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