def test_get_reader(self):
     """``get_reader`` returns the right generator for the URI scheme."""
     reader = eventlogging.get_reader('test://localhost/?value=secret')
     self.assertEqual(next(reader), 'secret')
Beispiel #2
0
 def test_load_plugins(self):
     """`get_plugins` loads plug-ins from an arbitrary path."""
     eventlogging.handlers.load_plugins(self.plugin_path)
     reader = eventlogging.get_reader('mock://localhost')
     self.assertEqual(next(reader), 'value generated by plug-in')
 def test_load_plugins(self):
     """`get_plugins` loads plug-ins from an arbitrary path."""
     eventlogging.handlers.load_plugins(self.plugin_path)
     reader = eventlogging.get_reader('mock://localhost')
     self.assertEqual(next(reader), 'value generated by plug-in')
Beispiel #4
0
 def test_get_reader(self):
     """``get_reader`` returns the right generator for the URI scheme."""
     reader = eventlogging.get_reader('test://localhost/?value=secret')
     self.assertEqual(next(reader), 'secret')