Ejemplo n.º 1
0
def test_attempt_decoding_with_bad_encoding_name():
    assert_equal("test", encoding.attempt_decoding("asdfasdf", "test"))
Ejemplo n.º 2
0
def test_attempt_decoding():
    for header in DECODED_HEADERS:
        encoding.attempt_decoding('ascii', header.encode('utf-8'))
Ejemplo n.º 3
0
 def test_attempt_decoding_with_bad_encoding_name(self):
     self.assertEqual("test", encoding.attempt_decoding("asdfasdf", "test"))
Ejemplo n.º 4
0
 def test_attempt_decoding(self):
     for header in DECODED_HEADERS:
         encoding.attempt_decoding('ascii', header.encode('utf-8'))
Ejemplo n.º 5
0
def test_attempt_decoding_with_bad_encoding_name():
    assert_equal("test", encoding.attempt_decoding("asdfasdf", "test"))
Ejemplo n.º 6
0
def test_attempt_decoding():
    for header in DECODED_HEADERS:
        encoding.attempt_decoding("ascii", header.encode("utf-8"))