(self)
| 122 | assert decoded_content == "User-agent: *\nDisallow: /\n" |
| 123 | |
| 124 | def test_decode_utf8(self): |
| 125 | robotstxt_body = b"User-agent: *\nDisallow: /\n" |
| 126 | decoded_content = decode_robotstxt(robotstxt_body, spider=None) |
| 127 | assert decoded_content == "User-agent: *\nDisallow: /\n" |
| 128 | |
| 129 | def test_decode_non_utf8(self): |
| 130 | robotstxt_body = b"User-agent: *\n\xffDisallow: /\n" |
nothing calls this directly
no test coverage detected