Check out assertRaises
http://docs.python.org/2/library/unittest.html#unittest.TestCase.assertRaises