Conditions | 9 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | #!/usr/bin/env python |
||
20 | def test_build_message(message): |
||
21 | """ Test that a message can be created and added to directly """ |
||
22 | msg = message |
||
23 | |||
24 | msg_string = str(msg) |
||
25 | assert '# A Test Message' in msg_string |
||
26 | assert 'This message is only a test of the alert system' in msg_string |
||
27 | |||
28 | msg_html = msg.html |
||
29 | assert '<html>' in msg_html |
||
30 | assert '<head></head>' in msg_html |
||
31 | assert '<body>' in msg_html |
||
32 | assert 'style="color:blue">' in msg_html |
||
33 | assert 'A Test Message' in msg_html |
||
34 | assert '<p>This message is only a test of the alert system' in msg_html |
||
35 | |||
59 |