Mercurial > pybugzilla
changeset 8:993fc3b27263
made whitespace better
author | Atul Varma <avarma@mozilla.com> |
---|---|
date | Tue, 13 Apr 2010 11:36:56 -0700 |
parents | 7a04d148ead6 |
children | 295c54288dd1 |
files | test_bugzilla.py |
diffstat | 1 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test_bugzilla.py Tue Apr 13 11:31:13 2010 -0700 +++ b/test_bugzilla.py Tue Apr 13 11:36:56 2010 -0700 @@ -27,7 +27,12 @@ ... filename="contents.txt", ... description="test upload") Called jsonreq( - body={'is_obsolete': False, 'flags': [], 'description': 'test upload', 'content_type': 'text/plain', 'encoding': 'base64', 'file_name': 'contents.txt', 'is_patch': False, 'data': 'dGVzdGluZyE=', 'is_private': False, 'size': 8}, + body={'is_obsolete': False, 'flags': [], + 'description': 'test upload', + 'content_type': 'text/plain', 'encoding': 'base64', + 'file_name': 'contents.txt', 'is_patch': False, + 'data': 'dGVzdGluZyE=', 'is_private': False, + 'size': 8}, method='POST', query_args={'username': 'bar', 'password': 'baz'}, url='http://foo/latest/bug/536619/attachment') @@ -44,11 +49,14 @@ for test in suite: tests.append(test) + optionflags = (doctest.NORMALIZE_WHITESPACE | + doctest.REPORT_UDIFF) finder = doctest.DocTestFinder() doctests = finder.find(module) for test in doctests: if len(test.examples) > 0: - tests.append(doctest.DocTestCase(test)) + tests.append(doctest.DocTestCase(test, + optionflags=optionflags)) return tests