def test_emit(self):
        self.log.set_level(Level.DEBUG)

        for l in Level.iterconstants():
            _lname = l.name.lower()

            try:
                getattr(self.log, _lname)("Message", _satraceback=False)
            except __HOLE__:
                self.assertEqual(l, Level.FATAL)

            self.assertEqual(self._lastlog['system'], "test" if l == Level.INFO
                             else "test#" + _lname)
            self.assertEqual(self._lastlog['_salevel'], l)
dataset/ETHPy150Open smartanthill/smartanthill1_0/smartanthill/test/test_log.py/LogCase.test_emit