(self)
| 143 | ]) |
| 144 | |
| 145 | def test_simple_html(self): |
| 146 | self._run_check(""" |
| 147 | <!DOCTYPE html PUBLIC 'foo'> |
| 148 | <HTML>&entity;  |
| 149 | <!--comment1a |
| 150 | -></foo><bar><<?pi?></foo<bar |
| 151 | comment1b--> |
| 152 | <Img sRc='Bar' isMAP>sample |
| 153 | text |
| 154 | “ |
| 155 | <!--comment2a-- --comment2b--> |
| 156 | </Html> |
| 157 | """, [ |
| 158 | ("data", "\n"), |
| 159 | ("decl", "DOCTYPE html PUBLIC 'foo'"), |
| 160 | ("data", "\n"), |
| 161 | ("starttag", "html", []), |
| 162 | ("entityref", "entity"), |
| 163 | ("charref", "32"), |
| 164 | ("data", "\n"), |
| 165 | ("comment", "comment1a\n-></foo><bar><<?pi?></foo<bar\ncomment1b"), |
| 166 | ("data", "\n"), |
| 167 | ("starttag", "img", [("src", "Bar"), ("ismap", None)]), |
| 168 | ("data", "sample\ntext\n"), |
| 169 | ("charref", "x201C"), |
| 170 | ("data", "\n"), |
| 171 | ("comment", "comment2a-- --comment2b"), |
| 172 | ("data", "\n"), |
| 173 | ("endtag", "html"), |
| 174 | ("data", "\n"), |
| 175 | ]) |
| 176 | |
| 177 | def test_malformatted_charref(self): |
| 178 | self._run_check("<p>&#bad;</p>", [ |
nothing calls this directly
no test coverage detected