def test_wrap(self, bb): obj = Mock() with patch('mode.utils.logging.Logwrapped') as Logwrapped: ret = bb.wrap(logging.ERROR, obj) assert ret is Logwrapped.return_value Logwrapped.assert_called_once_with( logger=bb, severity=logging.ERROR, obj=obj, )
def wrapped(self, *, obj, logger): return Logwrapped(obj, logger, severity='INFO', ident='ident')
def wrapped(self, *, obj, logger): return Logwrapped(obj, logger, severity="INFO", ident="ident")