def test_empty_config_init(self): arguments = MockArgumentParser() client = MockBotClient(arguments) configuration = unittest.mock.Mock() configuration.configurations = [] configuration.bot_selector = "programy.clients.client.DefaultBotSelector" factory = BotFactory(client, configuration) self.assertIsNotNone(factory) bot = factory.select_bot() self.assertIsNone(bot)