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