vitalk/pytest-flask — pull request #3 by vitalk (2014-09-07 16:26:51+00:00)
Title: Extends default `response_class` to test JSON responses

Add `json` method/property to `application.response_class` like the `requests` library
or `Flask-Testing` does:

```python

def test_json_response(client, accept_json):
res = client.get(url_for('api.ping'), headers=accept_json)
assert res.json == {'ping': 'pong'}
```