def test_hget(self): h = Hash() h._data = {'a': 'aa', 'b': 'bb'} self.assertEqual(h.hget('a'), 'aa') self.assertEqual(h.hget('b'), 'bb')