Some helpers for running tests with py.test.