

def test_dict_complex(self):
    x = {
        'foo': (1.0 + 1j),
        'bar': (2.0 + 2j),
    }
    x_rec = self.encode_decode(x)
    self.assertEqual(x, x_rec)
    for key in x:
        x.assertEqual(type(x[key]), type(x_rec[key]))

dataset/ETHPy150Open pydata/pandas/pandas/io/tests/test_packers.py TestNumpy.test_dict_complex/VarMisuse@59/74 `self`->`x`