Utility functions for py.test
