#NEWLINE# def test__granularities_with_altered_min( self ) : #NEWLINE# #INDENT# 'Tests ``R._granularities with an altered minimum value.' #NEWLINE# test_settings = TEST_SETTINGS . copy ( ) #NEWLINE# test_settings [ 'MIN_GRANULARITY' ] = 'daily' #NEWLINE# with override_settings ( REDIS_METRICS = test_settings ) : #NEWLINE# #INDENT# self . assertEqual ( list ( self . r . _granularities ( ) ) , [ 'daily' , 'weekly' , 'monthly' , 'yearly' ] )