def assert_raises_multi_regex(<EOL>self,<EOL>expected_exception,<EOL>expected_regexp,<EOL>callable_obj=None,<EOL>*args,<EOL>**kwargs<EOL>):
self.assertRaises(expected_exception, callable_obj, *args, **kwargs)<EOL>try:<EOL><INDENT>callable_obj(*args)<EOL><DEDENT>except facebook.GraphAPIError as error:<EOL><INDENT>self.assertEqual(error.message, expected_regexp)<EOL><DEDENT>
Custom function to backport assertRaisesRegexp to all supported
versions of Python.