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