'If the configuration model changes this test will (usually) fail.
If you changed configuration and it didn\'t fail, see below.
This failing test does not indicate a bug. Rather, it is a
reminder that since you have changed the model, you MUST IMPLEMENT
UPGRADE CODE for the on-disk configuration. Once you are confident
it is possible to upgrade from older versions of Flocker to the
new version of the code you have introduced, you can update this
test by running:
$ python -m flocker.control.test.test_model_change
And then committing the resulting changes to git.
Note that this test may *not* fail in some cases where you still
need to write upgrade code, so don\'t rely on it to always tell you
when you need to write upgrade code. In that case you should also
try to extend this module so it catches that category of change
next time someone makes it.'

def test_model_changed(self):

    current_model = generate_model()
    previous_model = loads(PERSISTED_MODEL.getContent())[u'model']
    self.assertDictEqual(current_model, previous_model, self.test_model_changed.__doc__)
