(self)
| 306 | "Testing the modification of the tree." |
| 307 | |
| 308 | def testModifyAttributes(self): |
| 309 | soup = BeautifulSoup('<a id="1"></a>') |
| 310 | soup.a['id'] = 2 |
| 311 | self.assertEqual(soup.renderContents(), '<a id="2"></a>') |
| 312 | del(soup.a['id']) |
| 313 | self.assertEqual(soup.renderContents(), '<a></a>') |
| 314 | soup.a['id2'] = 'foo' |
| 315 | self.assertEqual(soup.renderContents(), '<a id2="foo"></a>') |
| 316 | |
| 317 | def testNewTagCreation(self): |
| 318 | "Makes sure tags don't step on each others' toes." |
nothing calls this directly
no test coverage detected