(self)
| 810 | assert val == expected, (repr(val), repr(expected)) |
| 811 | |
| 812 | def test_replaceWith_with_function(self): |
| 813 | expected = '''<div class="portlet"> |
| 814 | TestimageMy link text |
| 815 | imageMy link text 2 |
| 816 | Behind you, a three-headed HTML&dash;Entity! |
| 817 | </div>''' |
| 818 | d = pq(self.html) |
| 819 | d('a').replace_with(lambda i, e: pq(e).html()) |
| 820 | val = d.__html__() |
| 821 | assert val == expected, (repr(val), repr(expected)) |
| 822 | |
| 823 | |
| 824 | class TestXMLNamespace(TestCase): |
nothing calls this directly
no test coverage detected