Not a major issue but just curious why you went this route instead of 

```python
self.assertEqual(len(reply['keys']), 3)
```