
build.test.test_writers.test_s5.py Maven / Gradle / Ivy
#!/usr/bin/env python
# $Id: test_s5.py 6379 2010-07-19 16:07:19Z goodger $
# Author: David Goodger
# Copyright: This module has been placed in the public domain.
"""
Tests for the S5/HTML writer.
"""
import os
from __init__ import DocutilsTestSupport
def suite():
settings = {'embed_stylesheet': 0,}
s = DocutilsTestSupport.PublishTestSuite('s5', suite_settings=settings)
s.generateTests(totest_1)
settings['hidden_controls'] = 0
settings['view_mode'] = 'outline'
s.generateTests(totest_2)
return s
interpolations = {'version': DocutilsTestSupport.docutils.__version__}
totest_1 = {}
totest_2 = {}
totest_1['basics'] = [
["""\
============
Show Title
============
Title slide
First Slide
===========
Slide text.
""",
"""\
Show Title
""" % interpolations]
]
totest_2['settings'] = [
["""\
==================
Bogus Slide Show
==================
We're just checking the settings
""",
"""\
Bogus Slide Show
""" % interpolations]
]
if __name__ == '__main__':
import unittest
unittest.main(defaultTest='suite')
© 2015 - 2025 Weber Informatics LLC | Privacy Policy