#NEWLINE# @ mock_sqs #NEWLINE# def test_read_message_from_queue( ) : #NEWLINE# #INDENT# conn = boto . connect_sqs ( ) #NEWLINE# queue = conn . create_queue ( 'testqueue' ) #NEWLINE# queue . set_message_class ( RawMessage ) #NEWLINE# body = 'foo bar baz' #NEWLINE# queue . write ( queue . new_message ( queue ) ) #NEWLINE# message = queue . read ( 1 ) #NEWLINE# message . get_body ( ) . should . equal ( body )