May be prettier:

``` python
with self.assertRaises(ValueError):
    TestRouterMissingName(self.config)
```