test_datetimelike.py 842 B

12345678910111213141516171819202122232425262728293031
  1. """ generic tests from the Datetimelike class """
  2. from pandas import DatetimeIndex, date_range
  3. from pandas.util import testing as tm
  4. from ..datetimelike import DatetimeLike
  5. class TestDatetimeIndex(DatetimeLike):
  6. _holder = DatetimeIndex
  7. def setup_method(self, method):
  8. self.indices = dict(index=tm.makeDateIndex(10),
  9. index_dec=date_range('20130110', periods=10,
  10. freq='-1D'))
  11. self.setup_indices()
  12. def create_index(self):
  13. return date_range('20130101', periods=5)
  14. def test_shift(self):
  15. pass # handled in test_ops
  16. def test_pickle_compat_construction(self):
  17. pass
  18. def test_intersection(self):
  19. pass # handled in test_setops
  20. def test_union(self):
  21. pass # handled in test_setops