Finally figure out how I was mangling the connection stack and made the tests run both with py.test and run_tests