def assertRaisesMessage(self, expected_exception, expected_message):
    "Assert that a call raises an exception with the given message.\n\n        Args:\n            expected_exception (type):\n                The type of exception that's expected to be raised.\n\n            expected_message (unicode):\n                The expected exception message.\n\n        Raises:\n            AssertionError:\n                The assertion failure, if the exception and message isn't\n                raised.\n        "
    return self.assertRaisesRegexp(expected_exception, re.escape(expected_message))
Assert that a call raises an exception with the given message.

Args:
    expected_exception (type):
        The type of exception that's expected to be raised.

    expected_message (unicode):
        The expected exception message.

Raises:
    AssertionError:
        The assertion failure, if the exception and message isn't
        raised.
def assertRaisesMessage(self, expected_exception, expected_message):
    "Assert that a call raises an exception with the given message.\n\n        Args:\n            expected_exception (type):\n                The type of exception that's expected to be raised.\n\n            expected_message (unicode):\n                The expected exception message.\n\n        Raises:\n            AssertionError:\n                The assertion failure, if the exception and message isn't\n                raised.\n        "
    return self.assertRaisesRegexp(expected_exception, re.escape(expected_message))