

def test_emit(self):
    (lt, lm) = self.build()
    lm.emit(logging.makeLogRecord({
        'name': 'foo',
        'level': logging.INFO,
        'msg': 'meh',
    }))
    self.assertEqual(lt.target.logs, [('foo', 'meh')])

dataset/ETHPy150Open spotify/python-graphwalker/graphwalker/test/tapping_test.py TestLogTap.test_emit/VarMisuse@22/24 `lt`->`lm`