Is there a reason you're not using [`self.assertRaises`](http://docs.python.org/2/library/unittest.html#unittest.TestCase.assertRaises) here?