'A configuration that was saved can subsequently retrieved.'

@validate_logging(assertHasAction, _LOG_SAVE, succeeded=True, startFields=dict(configuration=LATEST_TEST_DEPLOYMENT))
def test_save_then_get(self, logger):

    service = self.service(FilePath(self.mktemp()), logger)
    logger.reset()
    d = service.save(LATEST_TEST_DEPLOYMENT)
    d.addCallback((lambda _: service.get()))
    d.addCallback(self.assertEqual, LATEST_TEST_DEPLOYMENT)
    return d
