Ejemplo n.º 1
0
 def test_bad_config(self):
     for i in xrange(1):
         global current_config
         current_config = globals()["bad_stanza{}".format(i + 1)]
         with self.assertRaises(Exception) as cm:
             box_service.validate_config()
         self.assertTrue(cm.exception is not None)
Ejemplo n.º 2
0
 def test_config(self):
     for i in xrange(1):
         global current_config
         current_config = globals()["good_stanza{}".format(i + 1)]
         box_service.validate_config()