#NEWLINE# def test_get_metric( self ) : #NEWLINE# #INDENT# 'Tests getting a single metric; ``R.get_metric``.' #NEWLINE# slug = 'test-metric' #NEWLINE# self . r . get_metric ( slug ) #NEWLINE# ( sec , min , hour , day , week , month , year ) = self . r . _build_keys ( month ) #NEWLINE# self . redis . assert_has_calls ( [ call . get ( sec ) , call . get ( min ) , call . get ( hour ) , call . get ( day ) , call . get ( week ) , call . get ( month ) , call . get ( year ) ] )