You want to use [`self.assertRaises`](http://docs.python.org/2/library/unittest.html#unittest.TestCase.assertRaises):
```python
with self.assertRaises(badges.BadgingServiceError):
    badges.BadgeCollection("", "")
```