~wallyworld/lazr.restfulclient/relative-url-fix-681767

« back to all changes in this revision

Viewing changes to src/lazr/restfulclient/tests/test_docs.py

  • Committer: Benji York
  • Date: 2010-10-25 13:39:56 UTC
  • Revision ID: benji@benji-laptop-20101025133956-w3i79yrjz0mg542j
- nail some revisions
- fix some test bugs

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
import unittest
31
31
import wsgi_intercept
32
32
from wsgi_intercept.httplib2_intercept import install, uninstall
 
33
from zope.component import getUtility
33
34
 
34
35
# We avoid importing anything from lazr.restful into the module level,
35
36
# so that standalone_tests() can run without any support from
56
57
    file_manager.files = {}
57
58
    file_manager.counter = 0
58
59
 
 
60
    # Reset the set of recipes which is mutated by some of the tests.
 
61
    from lazr.restful.example.base.interfaces import IRecipeSet
 
62
    from lazr.restful.example.base.root import RECIPES
 
63
    getUtility(IRecipeSet).recipes = list(RECIPES)
 
64
 
59
65
 
60
66
def find_doctests(suffix):
61
67
    """Find doctests matching a certain suffix."""