def METHOD_NAME(
    self, model_factory
):
    conf_class = ConfigurationClassFactory()
    model_factory.create_batch(2, configuration_path=conf_class)
    with patch('ralph.data_center.publishers.publish_host_update') as mock:
        conf_class.module.name = 'another_module'
        conf_class.module.save()
        self.assertEqual(mock.call_count, 2)