'The latest golden files should be identical to ones generated from
HEAD.'

def test_can_create_latest_golden(self):

    configs_dir = FilePath(__file__).sibling('configurations')
    for (i, deployment) in enumerate(TEST_DEPLOYMENTS, start=1):
        encoding = wire_encode(Configuration(version=_CONFIG_VERSION, deployment=deployment))
        path = configs_dir.child(('configuration_%d_v%d.json' % (i, _CONFIG_VERSION)))
        self.assertEqual(json.loads(encoding), json.loads(path.getContent().rstrip()), ('Golden    test    file    %s    can    not    be    generated    from    HEAD.    Please    review    the    python    files    in    that    directory    to    re-generate    that    file    if    you    have    intentionally    changed    the    backing    test    data.    You    might    need    to    update    the    model    version    and    write    an    upgrade    test    if    you    are    intentionally    changing    the    model.' % (path.path,)))
