def test_get_with_json_serializer(self): store = FileStore(self._dir) store.set_serializer(JsonSerializer()) store.forever('foo', {'foo': 'bar'}) result = store.get('foo') assert result == {'foo': 'bar'}