def test_patch(self): """ Confirm patching was successful """ patch() log = logging.getLogger() self.assertTrue(isinstance(log.makeRecord, wrapt.BoundFunctionWrapper))
def setUp(self): patch() super(LoggingTestCase, self).setUp()