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