Skip to content

Commit

Permalink
Add additional invalid SERP tests for naive detection just to be safe
Browse files Browse the repository at this point in the history
  • Loading branch information
msukmanowsky committed Aug 28, 2013
1 parent 5632445 commit 5efef55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_serps.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ def test_custom_parser_implicit(self):
def test_naive_detection(self):
self.assertInvalidSERP(self.custom_serp_url)
self.assertValidSERP(self.custom_serp_url, u'piccshare', u'test', use_naive_method=True)
url = 'http://www.yahoo.com/#/%C2%BF??;%C2%AB99555$&&&4&'
urlp = urlparse(url)
self.assertInvalidSERP(urlparse(url), use_naive_method=True)
self.assertInvalidSERP(url, use_naive_method=True)

def test_get_all_query_params(self):
"""Ensure that get_all_query_params is a non-empty list."""
Expand Down

0 comments on commit 5efef55

Please sign in to comment.