Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Commit

Permalink
Don't rely on internal dictionary ordering in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mgedmin committed Apr 14, 2015
1 parent f8ed875 commit 9c24b19
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/z3c/testsetup/functional/functionaldoctestsetup.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,11 @@ using the default set of options, the following values are set::
parameter. By default `globs` is a dictionary of functions, that
should be'globally' available during testruns and it contains::

>>> setup.globs
{'http': <zope.app.testing.functional.HTTPCaller object at 0x...>,
'sync': <function sync at 0x...>,
'getRootFolder': <function getRootFolder at 0x...>}
>>> import pprint
>>> pprint.pprint(setup.globs)
{'getRootFolder': <function getRootFolder at 0x...>,
'http': <zope.app.testing.functional.HTTPCaller object at 0x...>,
'sync': <function sync at 0x...>}

The functions `sync` and `getRootFolder` are provided by
`zope.app.testing.functional`.
Expand Down

0 comments on commit 9c24b19

Please sign in to comment.