| 1 | #!/usr/bin/env python2
 | 
| 2 | """
 | 
| 3 | wild_report_test.py: Tests for wild_report.py
 | 
| 4 | """
 | 
| 5 | 
 | 
| 6 | import unittest
 | 
| 7 | 
 | 
| 8 | import wild_report  # module under test
 | 
| 9 | 
 | 
| 10 | 
 | 
| 11 | class 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 | 
 | 
| 28 | if __name__ == '__main__':
 | 
| 29 |   unittest.main()
 |