#NEWLINE# def test_supervision_yes( self ) : #NEWLINE# #INDENT# with localize ( 'sw' ) : #NEWLINE# #INDENT# response = unicode ( SUPERVISION_CONFIRM_YES ) #NEWLINE# #UNINDENT# script = '\n          5551234 > usimamizi ndio\n          5551234 < {0}\n        ' . format ( response ) #NEWLINE# self . run_script ( script ) #NEWLINE# statuses = SupplyPointStatus . objects . filter ( location_id = self . loc1 . get_id ) #NEWLINE# self . assertEqual ( statuses . count ( ) , 1 ) #NEWLINE# status = statuses [ 0 ] #NEWLINE# self . assertEqual ( status . status_type , SupplyPointStatusTypes . SUPERVISION_FACILITY ) #NEWLINE# self . assertEqual ( self . status_value , SupplyPointStatusValues . RECEIVED )