<commit_before>import urllib2
import vcr

def test_recorded_request_url_with_redirected_request(tmpdir):
    with vcr.use_cassette(str(tmpdir.join('test.yml'))) as cass:
        assert len(cass) == 0
        urllib2.urlopen('http://httpbin.org/redirect/3')
        print cass.requests
        print cass.requests[0]
        assert cass.requests[0].url == 'http://httpbin.org/redirect/3'
        assert cass.requests[3].url == 'http://httpbin.org/get'
        assert len(cass) == 4<commit_msg>remove errant print statements<commit_after>import urllib2
import vcr

def test_recorded_request_url_with_redirected_request(tmpdir):
    with vcr.use_cassette(str(tmpdir.join('test.yml'))) as cass:
        assert len(cass) == 0
        urllib2.urlopen('http://httpbin.org/redirect/3')
        assert cass.requests[0].url == 'http://httpbin.org/redirect/3'
        assert cass.requests[3].url == 'http://httpbin.org/get'
        assert len(cass) == 4
{'fraction_non_alphanumeric': 0.14012738853503184, 'fraction_numerical': 0.018046709129511677, 'mean_word_length': 3.44811320754717, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2471165', 'n_tokens_mistral': 336, 'n_tokens_neox': 319, 'n_words': 52}