def test_dti_add_timestamp_raises(self):
    idx = DatetimeIndex(['2011-01-01', '2011-01-02'])
    msg = 'cannot add DatetimeIndex and Timestamp'
    with tm.assert_raises_regex(TypeError, msg):
        (idx + Timestamp('2011-01-01'))
def test_dti_add_timestamp_raises(self):
    idx = DatetimeIndex(['2011-01-01', '2011-01-02'])
    msg = 'cannot add DatetimeIndex and Timestamp'
    with tm.assert_raises_regex(TypeError, msg):
        (idx + Timestamp('2011-01-01'))