Best of the web app test frameworks comment 000
paste.fixture does both of these:
- There's a special key for putting values for use in tests (paste.testing_variables), which takes the place of headers. It's out-of-band with respect to any HTTP information, and values needn't be serialized to strings.
- There's also ways to detect when you are in a debugging environment (paste.testing) -- some people think this is really bad, but I think those people are just scarred from having someone abuse that feature to put workarounds in the code for the tests. The rule of consenting adults say, to me, that the variable belongs there. Though, I suppose, those people want to set up all the mock objects ahead of time using a complicated setup process (e.g., dependency injection). A boolean is easier.