

def assertNotRaises(self, exception, method, *args, **kwargs):
    try:
        method(*args, **kwargs)
    except exception:
        self.fail('Exception "{0}" raised.'.format(exception))

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/base.py BaseUnitTest.assertNotRaises/original