'A persisted configuration saved in the latest configuration
version is not upgraded and therefore remains unchanged on
service startup.'

def test_current_configuration_unchanged(self):

    path = FilePath(self.mktemp())
    path.makedirs()
    config_path = path.child('current_configuration.json')
    persisted_configuration = Configuration(version=_CONFIG_VERSION, deployment=LATEST_TEST_DEPLOYMENT)
    config_path.setContent(wire_encode(persisted_configuration))
    self.service(path)
    loaded_configuration = wire_decode(config_path.getContent())
    self.assertEqual(loaded_configuration, persisted_configuration)
