Skip to content

Commit

Permalink
Add regression test for gh-110
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmavirus24 committed Aug 4, 2016
1 parent 4cc32fd commit 4f6ae06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/test_matchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ def test_query_matcher(self):
)
# Regression test (no query issue)
assert match(self.p, {'uri': 'http://example.com'}) is False
# Regression test (query with no value)
self.p.url = 'https://example.com/?foo'
assert match(self.p, {'uri': 'https://httpbin.org/?foo'}) is True

def test_uri_matcher(self):
match = matchers.matcher_registry['uri'].match
Expand Down

0 comments on commit 4f6ae06

Please sign in to comment.