#NEWLINE# def test_may15_minus10_period1( self ) : #NEWLINE# #INDENT# with patch_today ( * MAY_15 ) : #NEWLINE# #INDENT# filter_ = CustomMonthFilter ( start_of_month = ( - 10 ) , period = 1 ) #NEWLINE# date_span = filter_ . get_filter_value ( user = None , ui_filter = None ) #NEWLINE# self . assertEqual ( filter_ . startdate , self . date_class ( year = 2015 , month = 3 , day = 21 ) ) #NEWLINE# self . assertEqual ( date_span . enddate , self . date_class ( year = 2015 , month = 4 , day = 20 ) )