index_fixt.py
Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 import doctest
00003 import os
00004 
00005 
00006 def setup_test(test):
00007     fd = open(os.path.join(os.path.dirname(__file__), 'form.html'), 'rb')
00008     body = fd.read()
00009     fd.close()
00010     test.globs.update(body=body)
00011     for example in test.examples:
00012         example.options.setdefault(doctest.ELLIPSIS, 1)
00013         example.options.setdefault(doctest.NORMALIZE_WHITESPACE, 1)
00014 
00015 setup_test.__test__ = False


webtest
Author(s): AlexV
autogenerated on Sat Mar 25 2017 03:32:05