Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/simplejson/simplejson
/ test_default_encoding
Method
test_default_encoding
simplejson/tests/test_unicode.py:77–79 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
75
76
77
def
test_default_encoding(self):
78
self.assertEqual(json.loads(u
'{"a": "\xe9"}'
.encode(
'utf-8'
)),
79
{
'a'
: u
'\xe9'
})
80
81
def
test_unicode_preservation(self):
82
self.assertEqual(type(json.loads(u
'""'
)), text_type)
Callers
nothing calls this directly
Calls
2
loads
Method · 0.80
encode
Method · 0.45
Tested by
no test coverage detected