def assertRaisesMessage(self, exc_type, message, callable, *args, **kwargs):
    'Asserts that callable(*args, **kwargs) raises exc_type(message).'
    try:
        callable(*args, **kwargs)
    except exc_type as e:
        self.assertEqual(message, str(e))
    else:
        self.fail(('%s not raised' % exc_type.__name__))
Asserts that callable(*args, **kwargs) raises exc_type(message).
def assertRaisesMessage(self, exc_type, message, callable, *args, **kwargs):
    
    try:
        callable(*args, **kwargs)
    except exc_type as e:
        self.assertEqual(message, str(e))
    else:
        self.fail(('%s not raised' % exc_type.__name__))