| Conditions | 8 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | #!/usr/bin/env python |
||
| 47 | def test_message_mime(message): |
||
| 48 | """ Test that a message can form a valid MIMEMultiPart object """ |
||
| 49 | mime = message.mime() |
||
| 50 | mime_string = str(mime) |
||
| 51 | assert 'Content-Type' in mime_string |
||
| 52 | assert 'multipart/alternative' in mime_string |
||
| 53 | #assert 'From' in mime_string |
||
| 54 | assert 'MIME-Version:' in mime_string |
||
| 55 | assert 'Content-Type: text/plain; charset="us-ascii"' in mime_string |
||
| 56 | assert '# A Test Message' in mime_string |
||
| 57 | assert 'Content-Type: text/html; charset="us-ascii"' in mime_string |
||
| 58 | assert '<h1 style="color:blue">A Test Message</h1>' in mime_string |
||
| 59 |