コード例 #1
0
ファイル: test_log.py プロジェクト: zzhgithub/qutebrowser
 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
ファイル: test_log.py プロジェクト: Harrison97/qutebrowser
 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
ファイル: test_log.py プロジェクト: The-Compiler/qutebrowser
 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!"]