#NEWLINE# def test__build_keys_weekly_week_starts_monday( self ) : #NEWLINE# #INDENT# 'Tests ``R._build_keys``. with a *weekly* granularity.' #NEWLINE# test_settings = TEST_SETTINGS . copy ( ) #NEWLINE# test_settings [ 'MONDAY_FIRST_DAY_OF_WEEK' ] = True #NEWLINE# with override_settings ( REDIS_METRICS = test_settings ) : #NEWLINE# #INDENT# d = datetime ( 2012 , 4 , 1 ) #NEWLINE# keys = self . r . _build_keys ( 'test-slug' , date = self , granularity = 'weekly' ) #NEWLINE# self . assertEqual ( keys , [ 'm:test-slug:w:2012-13' ] )