File: test-qpy.py

package info (click to toggle)
quixote 2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,036 kB
  • ctags: 1,131
  • sloc: python: 5,935; ansic: 1,436; makefile: 87; sh: 23
file content (17 lines) | stat: -rw-r--r-- 276 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import quixote.html

try:
    import qpy
except ImportError:
    qpy = None

if qpy:
    def setup():
        quixote.html.use_qpy()

    def test():
        import quixote
        assert quixote.html.htmltext == qpy.h8

    def teardown():
        quixote.html.cleanup_qpy()