assert pd.DatetimeIndex(['10/02/2014'], dayfirst=True) == pd.DatetimeIndex(np.asarray(['10/02/2014'], dtype=object), dayfirst=True)