You're very dependent on that exact formatting of the json here. You're relying on luck. 
I would do:
```
eq_(json.loads(response.content)['hits'], [])
```