Lines Matching full:assertequal
26 self.assertEqual(self.parser.returns_unicode, y)
31 self.assertEqual(self.parser.ordered_attributes, y)
36 self.assertEqual(self.parser.specified_attributes, y)
144 self.assertEqual(op[0], 'PI: \'xml-stylesheet\' \'href="stylesheet.css"\'')
145 self.assertEqual(op[1], "Comment: ' comment data '")
146 self.assertEqual(op[2], "Notation declared: ('notation', None, 'notation.jpeg', None)")
147 self.assertEqual(op[3], "Unparsed entity decl: ('unparsed_entity', None, 'entity.file', None, 'notation')")
148 self.assertEqual(op[4], "Start element: 'root' {'attr1': 'value1', 'attr2': 'value2\\xe1\\xbd\\x80'}")
149 self.assertEqual(op[5], "NS decl: 'myns' 'http://www.python.org/namespace'")
150 self.assertEqual(op[6], "Start element: 'http://www.python.org/namespace!subelement' {}")
151 self.assertEqual(op[7], "Character data: 'Contents of subelements'")
152 self.assertEqual(op[8], "End element: 'http://www.python.org/namespace!subelement'")
153 self.assertEqual(op[9], "End of NS decl: 'myns'")
154 self.assertEqual(op[10], "Start element: 'sub2' {}")
155 self.assertEqual(op[11], 'Start of CDATA section')
156 self.assertEqual(op[12], "Character data: 'contents of CDATA section'")
157 self.assertEqual(op[13], 'End of CDATA section')
158 self.assertEqual(op[14], "End element: 'sub2'")
159 self.assertEqual(op[15], "External entity ref: (None, 'entity.file', None)")
160 self.assertEqual(op[16], "End element: 'root'")
173 self.assertEqual(op[0], 'PI: u\'xml-stylesheet\' u\'href="stylesheet.css"\'')
174 self.assertEqual(op[1], "Comment: u' comment data '")
175 self.assertEqual(op[2], "Notation declared: (u'notation', None, u'notation.jpeg', None)")
176 self.assertEqual(op[3], "Unparsed entity decl: (u'unparsed_entity', None, u'entity.file', None, u'notation')")
177 self.assertEqual(op[4], "Start element: u'root' {u'attr1': u'value1', u'attr2': u'value2\\u1f40'}")
178 self.assertEqual(op[5], "NS decl: u'myns' u'http://www.python.org/namespace'")
179 self.assertEqual(op[6], "Start element: u'http://www.python.org/namespace!subelement' {}")
180 self.assertEqual(op[7], "Character data: u'Contents of subelements'")
181 self.assertEqual(op[8], "End element: u'http://www.python.org/namespace!subelement'")
182 self.assertEqual(op[9], "End of NS decl: u'myns'")
183 self.assertEqual(op[10], "Start element: u'sub2' {}")
184 self.assertEqual(op[11], 'Start of CDATA section')
185 self.assertEqual(op[12], "Character data: u'contents of CDATA section'")
186 self.assertEqual(op[13], 'End of CDATA section')
187 self.assertEqual(op[14], "End element: u'sub2'")
188 self.assertEqual(op[15], "External entity ref: (None, u'entity.file', None)")
189 self.assertEqual(op[16], "End element: u'root'")
203 self.assertEqual(op[0], 'PI: u\'xml-stylesheet\' u\'href="stylesheet.css"\'')
204 self.assertEqual(op[1], "Comment: u' comment data '")
205 self.assertEqual(op[2], "Notation declared: (u'notation', None, u'notation.jpeg', None)")
206 self.assertEqual(op[3], "Unparsed entity decl: (u'unparsed_entity', None, u'entity.file', None, u'notation')")
207 self.assertEqual(op[4], "Start element: u'root' {u'attr1': u'value1', u'attr2': u'value2\\u1f40'}")
208 self.assertEqual(op[5], "NS decl: u'myns' u'http://www.python.org/namespace'")
209 self.assertEqual(op[6], "Start element: u'http://www.python.org/namespace!subelement' {}")
210 self.assertEqual(op[7], "Character data: u'Contents of subelements'")
211 self.assertEqual(op[8], "End element: u'http://www.python.org/namespace!subelement'")
212 self.assertEqual(op[9], "End of NS decl: u'myns'")
213 self.assertEqual(op[10], "Start element: u'sub2' {}")
214 self.assertEqual(op[11], 'Start of CDATA section')
215 self.assertEqual(op[12], "Character data: u'contents of CDATA section'")
216 self.assertEqual(op[13], 'End of CDATA section')
217 self.assertEqual(op[14], "End element: u'sub2'")
218 self.assertEqual(op[15], "External entity ref: (None, u'entity.file', None)")
219 self.assertEqual(op[16], "End element: u'root'")
245 self.assertEqual(str(e),
252 self.assertEqual(str(e),
278 self.assertEqual(len(L), 6)
292 self.assertEqual(self.stuff, expected,
325 self.assertEqual(self.stuff, ['123'],
333 self.assertEqual(self.stuff,
339 self.assertEqual(self.stuff, ["1<2> \n 3"],
345 self.assertEqual(self.stuff, ["<a>", "1", "<b>", "2", "<c>", "3"],
352 self.assertEqual(self.stuff,
358 self.assertEqual(self.stuff,
365 self.assertEqual(self.stuff,
373 self.assertEqual(self.stuff,
391 self.assertEqual(e.args[0], 'a',
412 self.assertEqual(pos, expected,
453 self.assertEqual(self.small_buffer_test(1025), 2)
456 self.assertEqual(self.small_buffer_test(1000), 1)
480 self.assertEqual(self.n, 1)
484 self.assertEqual(self.n, 1)
488 self.assertEqual(self.n, 2)
499 self.assertEqual(parser.buffer_size, 1024)
504 self.assertEqual(parser.buffer_size, 1024)
505 self.assertEqual(self.n, 1)
510 self.assertEqual(parser.buffer_size, 1024)
513 self.assertEqual(self.n, 11)
517 self.assertEqual(parser.buffer_size, 1024)
519 self.assertEqual(self.n, 12)
547 self.assertEqual(parser.buffer_size, 1024)
552 self.assertEqual(parser.buffer_size, 2048)
554 self.assertEqual(self.n, 2)
563 self.assertEqual(parser.buffer_size, 2048)
568 self.assertEqual(parser.buffer_size, 1024)
570 self.assertEqual(self.n, 4)
580 self.assertEqual(str(e), 'unclosed token: line 2, column 0')
589 self.assertEqual(str(e), 'XML declaration not well-formed: line 1, column 14')
611 self.assertEqual(handler_call_args, [(None, None)])
621 self.assertEqual(handler_call_args, [(None, None)])
640 self.assertEqual(handler_call_args, [("bar", "baz")])