summaryrefslogtreecommitdiff
path: root/docs/index_fixt.py
blob: dc60645aaa2d571c90fe88965d7a88fac1652ba0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# -*- coding: utf-8 -*-
import doctest
import os


def setup_test(test):
    fd = open(os.path.join(os.path.dirname(__file__), 'form.html'), 'rb')
    body = fd.read()
    fd.close()
    test.globs.update(body=body)
    for example in test.examples:
        example.options.setdefault(doctest.ELLIPSIS, 1)
        example.options.setdefault(doctest.NORMALIZE_WHITESPACE, 1)

setup_test.__test__ = False