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