Пример #1
0
    def test_entry_point(self, mock_read_config):
        mock_read_config.return_value = {}

        iso_importer, config = importer.entry_point()

        self.assertEqual(iso_importer, importer.ISOImporter)
        self.assertEqual(config, {})

        mock_read_config.assert_called_once_with('server/plugins.conf.d/iso_importer.json')
Пример #2
0
 def test_entry_point(self):
     iso_importer, config = importer.entry_point()
     self.assertEqual(iso_importer, importer.ISOImporter)
     self.assertEqual(config, {})