test_requests: convert tests to py.test style