(self)
| 224 | assert not lx.matches("http://blah2.com/blah2") |
| 225 | |
| 226 | def test_restrict_xpaths(self): |
| 227 | lx = self.extractor_cls(restrict_xpaths=('//div[@id="subwrapper"]',)) |
| 228 | assert list(lx.extract_links(self.response)) == [ |
| 229 | Link(url="http://example.com/sample1.html", text=""), |
| 230 | Link(url="http://example.com/sample2.html", text="sample 2"), |
| 231 | ] |
| 232 | |
| 233 | def test_restrict_xpaths_encoding(self): |
| 234 | """Test restrict_xpaths with encodings""" |
nothing calls this directly
no test coverage detected