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)
def test_load_simple_config(self): path = os.path.join(os.path.dirname(__file__), 'rbldns') self.assertEqual(list(load_simple_config(path)), DNSBL)
def test_plugin_simple_config(self): self.assertEqual(list(self.plugin.simple_config('rbldns')), list(load_simple_config('rbldns')))