diff --git a/test/test_ask.py b/test/test_ask.py new file mode 100644 index 00000000..b0d1c8f7 --- /dev/null +++ b/test/test_ask.py @@ -0,0 +1,62 @@ +from bs4 import BeautifulSoup + +from app.scrapers import Ask + + +def test_next_start(): + if 3 != Ask().next_start(2, None): + raise AssertionError() + + +def test_parse_response_for_none(): + html_text = """
No results for:
+44754546546545545465465f4654f654654
+Please try again.
+mock_desc
+