+ # Ensure that the models data includes this model, since it doesn't
+ # get added to the client store by Controller.add_model().
+ self._orig_models = JujuData().models
+ self._patch_models = mock.patch.object(JujuData, 'models',
+ side_effect=self._models)
+ self._patch_models.start()
+