예제 #1
0
def test_dict(d):
    assert decode(encode(d)) == d
예제 #2
0
def test_list(l):
    assert decode(encode(l)) == l
예제 #3
0
def test_bytestring(s):
    assert decode(encode(s)) == s
예제 #4
0
def test_integer(i):
    assert decode(encode(i)) == i
예제 #5
0
def test_string(s):
    assert decode(encode(s)) == bytes(s, 'utf-8')