Lines Matching refs:check_events
114 def check_events(self, source, expected_events): member in SGMLParserTestCase
152 self.check_events(["<!%s>" % inside], [
158 self.check_events("<!%s>" % inside, [
165 self.check_events("<a has_under _under>", [
173 self.check_events("<has_under></has_under>", [
181 self.check_events("<a href=foo'bar\"baz>", [
187 self.check_events("<br />text<i></i>", [
195 self.check_events("<?processing instruction>", [
200 self.check_events("<a><b></a></b>", [
208 self.check_events("this text & contains & ampersands &", [
213 self.check_events("this < text > contains < bare>pointy< brackets", [
221 self.check_events("""<a b='v' c="v" d=v e>""", output)
222 self.check_events("""<a b = 'v' c = "v" d = v e>""", output)
223 self.check_events("""<a\nb\n=\n'v'\nc\n=\n"v"\nd\n=\nv\ne>""", output)
224 self.check_events("""<a\tb\t=\t'v'\tc\t=\t"v"\td\t=\tv\te>""", output)
227 self.check_events("""<a b='xxx\n\txxx' c="yyy\t\nyyy" d='\txyz\n'>""",
232 self.check_events("""<a b='' c="">""", [
241 self.check_events("""<e a=%s>""" % url, [
245 self.check_events("<e a=rgb(1,2,3)>", [
252 self.check_events("""<a b=< c=<> d=<-> e='< '
274 self.check_events(('<a title="“test”">foo</a>'
289 self.check_events("""<a a.b='v' c:d=v e-f=v>""", [
295 self.check_events(("<a href='http://[1080::8:800:200C:417A]/'>"
302 self.check_events("<a<a>", [
306 self.check_events("</a<a>", [
316 self.check_events(s, [
324 self.check_events(s, [
335 self.check_events(s, [
343 self.check_events(s, [
351 self.check_events(s, [
371 self.check_events(s, [
383 self.check_events("<a b='<'>", [("starttag", "a", [("b", "<")])])
384 self.check_events("<a b='>'>", [("starttag", "a", [("b", ">")])])
388 self.check_events(["<a b='<'>"], output)
389 self.check_events(["<a ", "b='<'>"], output)
390 self.check_events(["<a b", "='<'>"], output)
391 self.check_events(["<a b=", "'<'>"], output)
392 self.check_events(["<a b='<", "'>"], output)
393 self.check_events(["<a b='<'", ">"], output)
396 self.check_events(["<a b='>'>"], output)
397 self.check_events(["<a ", "b='>'>"], output)
398 self.check_events(["<a b", "='>'>"], output)
399 self.check_events(["<a b=", "'>'>"], output)
400 self.check_events(["<a b='>", "'>"], output)
401 self.check_events(["<a b='>'", ">"], output)
404 self.check_events(["", "<!--abc-->"], output)
405 self.check_events(["<", "!--abc-->"], output)
406 self.check_events(["<!", "--abc-->"], output)
407 self.check_events(["<!-", "-abc-->"], output)
408 self.check_events(["<!--", "abc-->"], output)
409 self.check_events(["<!--a", "bc-->"], output)
410 self.check_events(["<!--ab", "c-->"], output)
411 self.check_events(["<!--abc", "-->"], output)
412 self.check_events(["<!--abc-", "->"], output)
413 self.check_events(["<!--abc--", ">"], output)
414 self.check_events(["<!--abc-->", ""], output)