Commit 069175e9 authored by Fred Drake's avatar Fred Drake

Update the logging level names in the test, and make sure we get the

same results regardless of case.
parent 0acd98ac
......@@ -51,14 +51,12 @@ class TestzLOGConfig(unittest.TestCase):
def test_logging_level(self):
# Make sure the expected names are supported; it's not clear
# how to check the values in a meaningful way.
# Just make sure they're case-insensitive.
convert = zLOG.datatypes.logging_level
convert("all")
convert("debug")
convert("info")
convert("warn")
convert("error")
convert("fatal")
convert("critical")
for name in ["notset", "all", "trace", "debug", "blather",
"info", "warn", "warning", "error", "fatal",
"critical"]:
self.assertEqual(convert(name), convert(name.upper()))
self.assertRaises(ValueError, convert, "hopefully-not-a-valid-value")
def test_http_method(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment