예제 #1
0
 def test_empty_message(self, caplog):
     """Make sure there's no crash with an empty message."""
     log.qt_message_handler(QtCore.QtDebugMsg, self.Context(), "")
     assert len(caplog.records) == 1
     assert caplog.records[0].msg == "Logged empty message!"
예제 #2
0
 def test_empty_message(self, caplog):
     """Make sure there's no crash with an empty message."""
     log.qt_message_handler(QtCore.QtDebugMsg, self.Context(), "")
     assert len(caplog.records) == 1
     assert caplog.records[0].msg == "Logged empty message!"
예제 #3
0
 def test_empty_message(self, caplog):
     """Make sure there's no crash with an empty message."""
     log.qt_message_handler(QtCore.QtDebugMsg, self.Context(), "")
     assert caplog.messages == ["Logged empty message!"]
예제 #4
0
 def test_empty_message(self, caplog):
     """Make sure there's no crash with an empty message."""
     log.qt_message_handler(QtCore.QtDebugMsg, self.Context(), "")
     assert caplog.messages == ["Logged empty message!"]