#NEWLINE# def test_urgent_non_reporting_alert( self ) : #NEWLINE# #INDENT# urgent_non_reporting = UrgentNonReporting ( TEST_DOMAIN ) #NEWLINE# urgent_non_reporting . send ( ) #NEWLINE# self . assertEqual ( SMS . objects . count ( ) , 1 ) #NEWLINE# self . assertEqual ( SMS . objects . all ( ) . first ( ) . text , ( URGENT_NON_REPORTING % self . district . name ) ) #NEWLINE# create_stock_report ( self . loc1 , { #NEWLINE# #INDENT# 'tp2' : 0 , #NEWLINE# #UNINDENT# } ) #NEWLINE# create_stock_report ( self . loc2 , { #NEWLINE# #INDENT# 'tp2' : 0 , #NEWLINE# #UNINDENT# } ) #NEWLINE# now = datetime . utcnow ( ) #NEWLINE# self . assertEqual ( SMS . objects . filter ( date__gte = now ) . count ( ) , 0 )