#NEWLINE# def test_bar_count_for_simple_transforms( self ) : #NEWLINE# #INDENT# july_9_dt = ( self . env . get_open_and_close ( pd . Timestamp ( '2015-07-09' ) ) [ 0 ] + Timedelta ( '30 minutes' ) ) #NEWLINE# self . assertEqual ( ( ( 3 * 390 ) + 31 ) , self . data_portal . _get_minute_count_for_transform ( nov_30_dt , 4 ) ) #NEWLINE# nov_30_dt = ( self . env . get_open_and_close ( pd . Timestamp ( '2015-11-30' ) ) [ 0 ] + Timedelta ( '30 minutes' ) ) #NEWLINE# self . assertEqual ( ( ( ( 390 + 390 ) + 210 ) + 31 ) , self . data_portal . _get_minute_count_for_transform ( nov_30_dt , 4 ) )