Example #1
0
 def runTest(self):
     c = Config()
     c.Set("Value", self.badVal)
     with self.assertRaises(Exception):
         c.GetAsNum("Value")
Example #2
0
 def runTest(self):
     c = Config()
     c.Set("Value", 33)
     self.assertEqual(c.GetAsNum("Value"), 33)