def test_rscan(self):
        keys = [
            'zzzz0',
            'zzzz1',
            'zzzz2',
            'zzzz3',
            'zzzz4',
            'zzzz5',
            'zzzz6',
            'zzzz7'
        ]
        values = [
            'aa1',
            'bb2',
            'cc3',
            'dd4',
            'ee5',
            'ff6',
            'gg7',
            'hh8'
        ]
        params = {}
        for i in range(len(keys)):
            params[keys[i]] = values[i]        
        a = self.client.multi_set(**params)
        assert_equals(a,len(params))
        b = self.client.rscan('zzzzz','zzzz ',10)
        assert_dict_equal(b,params)
        index = 0
        c = len(keys)
        for k,v in b.items():
            assert_equals(k, keys[c-index-1])
            assert_equals(v, values[c-index-1])
            index += 1        
        d = self.client.multi_del(*params.keys())
        assert_equals(d,len(params))
dataset/ETHPy150Open wrongwaycn/ssdb-py/tests/test_client.py/TestClient.test_rscan/original