~didrocks/unity/altf10

« back to all changes in this revision

Viewing changes to grackle/tests/test_client.py

  • Committer: Curtis Hovey
  • Date: 2012-01-31 05:01:20 UTC
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: curtis.hovey@canonical.com-20120131050120-6crizbaw5vn39d4w
Removed hack now that test data guarantees a sane message dict.

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
                    if part.get_content_type() == 'text/plain']
136
136
                message['body'] = '\n\n'.join(text_parts)
137
137
            elif (display_type == 'all'
138
 
                  and 'body' in message
139
138
                  and isinstance(message['body'], list)):
140
139
                parts = [str(part.get_payload()) for part in message['body']]
141
140
                message['body'] = '\n\n'.join(parts)