OILS / test / wild_report_test.py View on Github | oilshell.org

28 lines, 15 significant
1#!/usr/bin/env python2
2"""wild_report_test.py: Tests for wild_report.py."""
3
4import unittest
5
6import wild_report # module under test
7
8
9class FooTest(unittest.TestCase):
10
11 def setUp(self):
12 pass
13
14 def tearDown(self):
15 pass
16
17 def testTemplate(self):
18 BODY_STYLE = wild_report.BODY_STYLE
19 PAGE_TEMPLATES = wild_report.PAGE_TEMPLATES
20
21 data = {'base_url': '', 'failures': [], 'task': 'osh2oil'}
22
23 body = BODY_STYLE.expand(data, group=PAGE_TEMPLATES['FAILED'])
24 print(body)
25
26
27if __name__ == '__main__':
28 unittest.main()