```self.assertRaises``` would be more explicit and more specific about which exception should be raised.