Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

        def properly_decode_header(header):
    return u"".join(_parse_charset_header(header))
        


src/l/a/lamson-1.3.4/tests/lamson_tests/encoding_tests.py   lamson(Download)
def test_properly_decode_header():
    for i, header in enumerate(BAD_HEADERS):
        parsed = encoding.properly_decode_header(header)
        assert_equal(DECODED_HEADERS[i], parsed)
 

src/l/a/lamson-HEAD/tests/lamson_tests/encoding_tests.py   lamson(Download)
def test_properly_decode_header():
    for i, header in enumerate(BAD_HEADERS):
        parsed = encoding.properly_decode_header(header)
        assert_equal(DECODED_HEADERS[i], parsed)