Пример #1
0
 def simple_config(self, name):
     """
     Gets a simple configuration file and returns it as a list.
     
     :param name: The name of the configuration file
     :type name: str
     """
     return load_simple_config(name)
Пример #2
0
 def test_load_simple_config(self):
     path = os.path.join(os.path.dirname(__file__), 'rbldns')
     self.assertEqual(list(load_simple_config(path)), DNSBL)
Пример #3
0
 def test_plugin_simple_config(self):
     self.assertEqual(list(self.plugin.simple_config('rbldns')),
         list(load_simple_config('rbldns')))