#NEWLINE# def testShrink( self ) : #NEWLINE# #INDENT# self . conf [ 'trend.rra._60' ] = 14400 #NEWLINE# trend . Trend ( rra . conf , self . tmpdir ) #NEWLINE# self . assertRRDCount ( 1 ) #NEWLINE# rra = self . rrdtool_info ( ) [ 'rra' ] #NEWLINE# self . assertEquals ( len ( rra ) , 10 ) #NEWLINE# self . assertRRA ( rra [ 0 ] , 'MAX' , 1 , 240 ) #NEWLINE# self . assertRRA ( rra [ 1 ] , 'AVERAGE' , 1 , 240 ) #NEWLINE# self . conf [ 'trend.rra._60' ] = 1440 #NEWLINE# trend . Trend ( self . conf , self . tmpdir ) #NEWLINE# self . assertRRDCount ( 1 ) #NEWLINE# rra = self . rrdtool_info ( ) [ 'rra' ] #NEWLINE# self . assertEquals ( len ( rra ) , 10 ) #NEWLINE# self . assertRRA ( rra [ 0 ] , 'MAX' , 1 , 24 ) #NEWLINE# self . assertRRA ( rra [ 1 ] , 'AVERAGE' , 1 , 24 )