#NEWLINE# def test_get_escalation_empty_when_recurrance_is_not_now( self ) : #NEWLINE# #INDENT# rule = Rule ( name = random_string ( ) , description = random_string ( ) , frequency = 'WEEKLY' ) #NEWLINE# rule . save ( ) #NEWLINE# event = Event ( start = ( timezone . now ( ) - timedelta ( days = 2 ) ) , end = ( timezone . now ( ) - timedelta ( days = 1 ) ) , title = '{username},{username}' . format ( username = self . username ) , calendar = self . cal , rule = rule ) #NEWLINE# event . save ( ) #NEWLINE# events = get_escalation_for_service ( self . service ) #NEWLINE# self . assertEqual ( 0 , len ( events ) )