Add a test suite for autodoc.

This commit is contained in:
Georg Brandl
2008-08-04 19:39:05 +00:00
parent 408786e268
commit 00b30f6f65
5 changed files with 350 additions and 10 deletions

View File

@@ -24,7 +24,7 @@ from nose import tools
__all__ = [
'test_root',
'raises', 'raises_msg',
'raises', 'raises_msg', 'Struct',
'ListOutput', 'TestApp', 'with_testapp',
'path', 'with_tempdir', 'write_file',
'sprint',
@@ -66,6 +66,11 @@ def raises_msg(exc, msg, func, *args, **kwds):
(func.__name__, _excstr(exc)))
class Struct(object):
def __init__(self, **kwds):
self.__dict__.update(kwds)
class ListOutput(object):
"""
File-like object that collects written text in a list.