Пример #1
0
def test_properly_decode_header():
    for i, header in enumerate(BAD_HEADERS):
        parsed = encoding.properly_decode_header(header)
        assert_equal(DECODED_HEADERS[i], parsed)
Пример #2
0
 def test_properly_decode_header(self):
     for i, header in enumerate(BAD_HEADERS):
         parsed = encoding.properly_decode_header(header)
         self.assertEqual(DECODED_HEADERS[i], parsed)