def test_saveLoadLevel(self):
        """
        It's important that the C{log_level} key remain a
        L{constantly.NamedConstant} object.
        """
        inputEvent = dict(log_level=LogLevel.warn)
        loadedEvent = eventFromJSON(self.savedEventJSON(inputEvent))
        self.assertIs(loadedEvent["log_level"], LogLevel.warn)

        It's important that the C{log_level} key remain a
        L{constantly.NamedConstant} object.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/logger/test/test_json.py