from netlib import encoding def test_identity(): assert b"string" == encoding.decode("identity", b"string") assert b"string" == encoding.encode("identity", b"string") assert not encoding.encode("nonexistent", b"string") assert not encoding.decode("nonexistent encoding", b"string") def test_gzip(): assert b"string" == encoding.decode( "gzip", encoding.encode( "gzip", b"string" ) ) assert encoding.decode("gzip", b"bogus") is None def test_deflate(): assert b"string" == encoding.decode( "deflate", encoding.encode( "deflate", b"string" ) ) assert b"string" == encoding.decode( "deflate", encoding.encode( "deflate", b"string" )[2:-4] ) assert encoding.decode("deflate", b"bogus") is None 6dacfeb26d65'/> [no description]
aboutsummaryrefslogtreecommitdiffstats
path: root/3rdparty/python-console/test_cli.cpp
blob: 76d0f251a401e044417e6f03053071329f62ff85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63