

def test_json_suffix(self):
    key = 'key'
    data = {
        'lang': 'en',
        'code': 'en',
    }
    res = self.r.lpush(key, data=data)
    self.assertEquals(res, 1)
    res = self.r.lpop(key)
    self.assertEquals(res, data)

dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/addons/datastores/tests/redis_ds.py TestRedis.test_json_suffix/original