def test_dict_numpy_complex(self):
        x = {'foo': np.complex128(1.0 + 1.0j),
             'bar': np.complex128(2.0 + 2.0j)}
        x_rec = self.encode_decode(x)
        self.assertEqual(x, x_rec)
        for key in x:
            self.assertEqual(type(x[key]), type(x_rec[key]))
dataset/ETHPy150Open pydata/pandas/pandas/io/tests/test_packers.py/TestNumpy.test_dict_numpy_complex/original