#NEWLINE# def testTrans( self ) : #NEWLINE# #INDENT# with localize ( 'sw' ) : #NEWLINE# #INDENT# response = unicode ( SOH_CONFIRM ) #NEWLINE# #UNINDENT# script = ( '\n          5551234 > trans yes\n          5551234 < %s\n        ' % response ) #NEWLINE# self . run_script ( script ) #NEWLINE# script = ( '\n          5551234 > trans no\n          5551234 < %s\n        ' % response ) #NEWLINE# self . run_script ( script ) #NEWLINE# self . assertEqual ( SupplyPointStatus . objects . count ( ) , 2 ) #NEWLINE# status1 = SupplyPointStatus . objects . get ( status_type = SupplyPointStatusTypes . TRANS_FACILITY , status_value = SupplyPointStatusValues . NOT_SUBMITTED ) #NEWLINE# status2 = SupplyPointStatus . objects . get ( status_type = SupplyPointStatusTypes . TRANS_FACILITY , status_value = SupplyPointStatusValues . SUBMITTED ) #NEWLINE# self . assertEqual ( self . user1 . location_id , status1 . location_id ) #NEWLINE# self . assertEqual ( self . user1 . location_id , status2 . location_id )