

def test_basic_index(self):
    for (s, i) in self.d.items():
        i_rec = self.encode_decode(i)
        self.assertTrue(i.equals(i_rec))
    i = Index([Timestamp('20130101'), Timestamp('20130103')])
    i_rec = self.encode_decode(i)
    self.assertTrue(i.equals(i_rec))
    i = Index([Timestamp('20130101 9:00:00'), Timestamp('20130103 11:00:00')]).tz_localize('US/Eastern')
    i_rec = self.encode_decode(i)
    self.assertTrue(i.equals(i_rec))

dataset/ETHPy150Open pydata/pandas/pandas/io/tests/test_packers.py TestIndex.test_basic_index/original