add documentation about the new match_querystring feature

This commit is contained in:
Alexis Métaireau
2013-09-23 17:25:49 +02:00
parent 0ac0bb493c
commit a161f9e660

View File

@@ -260,6 +260,10 @@ def test_httpretty_should_allow_registering_regexes():
expect(httpretty.last_request().path).to.equal('/v1/deal;brand=GAP')
```
By default, the regexp you register will match the requests without looking at
the querystring. If you want the querystring to be considered, you can set
`match_querystring=True` when calling `register_uri`.
## expect for a response, and check the request got by the "server" to make sure it was fine.
```python