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

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