Exemple #1
0
 def test_load_formatter_plugins__default_plugins_no_predicate(self):
     plugins = load_formatter_plugins().keys()
     self.assertTrue(set(('message', 'log_level', 'channel', 'process_id', 'thread_id')) & set(plugins))
 def test_load_formatter_plugins__default_plugins_no_predicate(self):
     plugins = load_formatter_plugins().keys()
     self.assertTrue(
         set(('message', 'log_level', 'channel', 'process_id', 'thread_id'))
         & set(plugins))
Exemple #3
0
 def test_load_formatter_plugins__predicate(self):
     plugins = load_formatter_plugins(lambda p: p != 'log_level').keys()
     self.assertNotIn('log_level', plugins)
 def test_load_formatter_plugins__predicate(self):
     plugins = load_formatter_plugins(lambda p: p != 'log_level').keys()
     self.assertNotIn('log_level', plugins)