Lines Matching refs:eq
10 eq = self.assertEqual
11 eq(base64.encodestring("www.python.org"), "d3d3LnB5dGhvbi5vcmc=\n")
12 eq(base64.encodestring("a"), "YQ==\n")
13 eq(base64.encodestring("ab"), "YWI=\n")
14 eq(base64.encodestring("abc"), "YWJj\n")
15 eq(base64.encodestring(""), "")
16 eq(base64.encodestring("abcdefghijklmnopqrstuvwxyz"
24 eq = self.assertEqual
25 eq(base64.decodestring("d3d3LnB5dGhvbi5vcmc=\n"), "www.python.org")
26 eq(base64.decodestring("YQ==\n"), "a")
27 eq(base64.decodestring("YWI=\n"), "ab")
28 eq(base64.decodestring("YWJj\n"), "abc")
29 eq(base64.decodestring("YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXpBQkNE"
35 eq(base64.decodestring(''), '')
38 eq = self.assertEqual
45 eq(outfp.getvalue(),
62 eq = self.assertEqual
64 eq(base64.b64encode("www.python.org"), "d3d3LnB5dGhvbi5vcmc=")
65 eq(base64.b64encode('\x00'), 'AA==')
66 eq(base64.b64encode("a"), "YQ==")
67 eq(base64.b64encode("ab"), "YWI=")
68 eq(base64.b64encode("abc"), "YWJj")
69 eq(base64.b64encode(""), "")
70 eq(base64.b64encode("abcdefghijklmnopqrstuvwxyz"
77 eq(base64.b64encode('\xd3V\xbeo\xf7\x1d', altchars='*$'), '01a*b$cd')
79 eq(base64.standard_b64encode("www.python.org"), "d3d3LnB5dGhvbi5vcmc=")
80 eq(base64.standard_b64encode("a"), "YQ==")
81 eq(base64.standard_b64encode("ab"), "YWI=")
82 eq(base64.standard_b64encode("abc"), "YWJj")
83 eq(base64.standard_b64encode(""), "")
84 eq(base64.standard_b64encode("abcdefghijklmnopqrstuvwxyz"
91 eq(base64.urlsafe_b64encode('\xd3V\xbeo\xf7\x1d'), '01a-b_cd')
94 eq = self.assertEqual
95 eq(base64.b64decode("d3d3LnB5dGhvbi5vcmc="), "www.python.org")
96 eq(base64.b64decode('AA=='), '\x00')
97 eq(base64.b64decode("YQ=="), "a")
98 eq(base64.b64decode("YWI="), "ab")
99 eq(base64.b64decode("YWJj"), "abc")
100 eq(base64.b64decode("YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXpBQkNE"
106 eq(base64.b64decode(''), '')
108 eq(base64.b64decode('01a*b$cd', altchars='*$'), '\xd3V\xbeo\xf7\x1d')
110 eq(base64.standard_b64decode("d3d3LnB5dGhvbi5vcmc="), "www.python.org")
111 eq(base64.standard_b64decode("YQ=="), "a")
112 eq(base64.standard_b64decode("YWI="), "ab")
113 eq(base64.standard_b64decode("YWJj"), "abc")
114 eq(base64.standard_b64decode(""), "")
115 eq(base64.standard_b64decode("YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXpBQkNE"
122 eq(base64.urlsafe_b64decode('01a-b_cd'), '\xd3V\xbeo\xf7\x1d')
128 eq = self.assertEqual
129 eq(base64.b32encode(''), '')
130 eq(base64.b32encode('\x00'), 'AA======')
131 eq(base64.b32encode('a'), 'ME======')
132 eq(base64.b32encode('ab'), 'MFRA====')
133 eq(base64.b32encode('abc'), 'MFRGG===')
134 eq(base64.b32encode('abcd'), 'MFRGGZA=')
135 eq(base64.b32encode('abcde'), 'MFRGGZDF')
138 eq = self.assertEqual
139 eq(base64.b32decode(''), '')
140 eq(base64.b32decode('AA======'), '\x00')
141 eq(base64.b32decode('ME======'), 'a')
142 eq(base64.b32decode('MFRA===='), 'ab')
143 eq(base64.b32decode('MFRGG==='), 'abc')
144 eq(base64.b32decode('MFRGGZA='), 'abcd')
145 eq(base64.b32decode('MFRGGZDF'), 'abcde')
148 eq = self.assertEqual
149 eq(base64.b32decode('', True), '')
150 eq(base64.b32decode('ME======', True), 'a')
151 eq(base64.b32decode('MFRA====', True), 'ab')
152 eq(base64.b32decode('MFRGG===', True), 'abc')
153 eq(base64.b32decode('MFRGGZA=', True), 'abcd')
154 eq(base64.b32decode('MFRGGZDF', True), 'abcde')
156 eq(base64.b32decode('me======', True), 'a')
157 eq(base64.b32decode('mfra====', True), 'ab')
158 eq(base64.b32decode('mfrgg===', True), 'abc')
159 eq(base64.b32decode('mfrggza=', True), 'abcd')
160 eq(base64.b32decode('mfrggzdf', True), 'abcde')
164 eq(base64.b32decode('MLO23456'), 'b\xdd\xad\xf3\xbe')
165 eq(base64.b32decode('M1023456', map01='L'), 'b\xdd\xad\xf3\xbe')
166 eq(base64.b32decode('M1023456', map01='I'), 'b\x1d\xad\xf3\xbe')
173 eq = self.assertEqual
174 eq(base64.b16encode('\x01\x02\xab\xcd\xef'), '0102ABCDEF')
175 eq(base64.b16encode('\x00'), '00')
178 eq = self.assertEqual
179 eq(base64.b16decode('0102ABCDEF'), '\x01\x02\xab\xcd\xef')
180 eq(base64.b16decode('00'), '\x00')
184 eq(base64.b16decode('0102abcdef', True), '\x01\x02\xab\xcd\xef')