def test_hlen(self): h = Hash() h.hmset({'a': 'aa', 'b': 'bb', 'c': 'cc'}) self.assertEqual(h.hlen(), 3)