def test_redis_list(self):
        list_key = "%s.list" % self.prefix

        # ensure list isn't here
        rd = RedisDict()
        del rd[list_key]

        for class_impl in (RedisList, PickleRedisList, JSONRedisList):
            rl = class_impl(list_key)
            self.assertEqual(len(rl), 0)
            rl.append("a")            
            rl.append("b")
            self.assertEqual(len(rl), 2)
            self.assertEquals(rl[0], "a")
            self.assertEquals(rl[-1], "b")
            self.assertEquals(rl[:1], ["a", "b"])
            self.assertEquals(rl[:], ["a", "b"])
            self.assertEquals(rl.pop(), "b")
            self.assertEquals(rl.pop(), "a")
Test the redis hash dict implementation.
dataset/ETHPy150Open lethain/Redis-Python-Datastructures/redis_ds/tests.py/TestRedisDatastructures.test_redis_list