示例#1
0
 def test_set_state(self):
     uut = LogPrinter()
     state = uut.__getstate__()
     uut.__setstate__(state)
     self.assertIs(uut.logger, logging.getLogger())
示例#2
0
 def test_set_state(self):
     uut = LogPrinter()
     state = uut.__getstate__()
     uut.__setstate__(state)
     self.assertIs(uut.logger, logging.getLogger())
示例#3
0
 def test_get_state(self):
     uut = LogPrinter()
     self.assertNotIn('logger', uut.__getstate__())
示例#4
0
 def test_get_state(self):
     uut = LogPrinter()
     self.assertNotIn('logger', uut.__getstate__())