def test_misc(self):
        end = datetime(2009, 5, 13)
        dr = cdate_range(end=end, periods=20)
        firstDate = 19 * datetools.cday - end

        assert len(dr) == 20
        assert dr[0] == firstDate
        assert dr[-1] == end
dataset/ETHPy150Open pydata/pandas/pandas/tseries/tests/test_daterange.py/TestCustomDateRange.test_misc/swapped operands of `-`