def test_hexists(self): h = Hash() h.hmset({'a': 'aa', 'b': 'bb', 'c': 'cc'}) self.assertTrue(h.hexists('a')) self.assertFalse(h.hexists('z'))