예제 #1
0
 def test_decode(self):
     assert isinstance(ENCODED, str)
     assert_equals(decode_output(ENCODED), UNICODE)
예제 #2
0
 def test_force_decoding(self):
     assert isinstance(ENCODED, unicode)
     assert_equals(decode_output(ENCODED, force=True), UNICODE)
예제 #3
0
 def test_bytes_are_decoded(self):
     assert_equals(decode_output(bytes(ENCODED)), UNICODE)
예제 #4
0
 def test_return_unicode_as_is_by_default(self):
     assert isinstance(UNICODE, unicode)
     assert_equals(decode_output(UNICODE), UNICODE)
예제 #5
0
 def test_force_decoding(self):
     assert_equals(decode_output(ENCODED, force=True), UNICODE)
예제 #6
0
 def test_decode(self):
     assert_equals(decode_output(ENCODED), UNICODE)
예제 #7
0
 def test_bytes_are_decoded(self):
     assert_equals(decode_output(bytes(ENCODED)), UNICODE)
예제 #8
0
 def test_force_decoding(self):
     assert_equals(decode_output(ENCODED, force=True), UNICODE)
예제 #9
0
 def test_decode(self):
     assert_equals(decode_output(ENCODED), UNICODE)