def test_hkeys(self): h = Hash() h.hmset({'a': 'aa', 'b': 'bb', 'c': 'cc'}) self.assertItemsEqual(h.hkeys(), ['a', 'b', 'c'])