コード例 #1
0
 def test_it_doesnt_filter_exception_events(self, unexpected_exception_event):
     assert filters.filter_ws4py_handshake_error(unexpected_exception_event) is True
コード例 #2
0
 def test_doesnt_filter_out_other_HandshakeErrors(self):
     event = exception_event(ws4py.exc.HandshakeError("Some other message"))
     assert filters.filter_ws4py_handshake_error(event) is True
コード例 #3
0
 def test_it_doesnt_filter_other_logger_events(self, unexpected_logger_event):
     assert filters.filter_ws4py_handshake_error(unexpected_logger_event) is True
コード例 #4
0
 def test_it_filters_HandshakeError_HTTP_UPGRADE_events(self):
     event = exception_event(
         ws4py.exc.HandshakeError("Header HTTP_UPGRADE is not defined")
     )
     assert filters.filter_ws4py_handshake_error(event) is False
コード例 #5
0
ファイル: filters_test.py プロジェクト: hypothesis/h
 def test_it_doesnt_filter_exception_events(self, unexpected_exception_event):
     assert filters.filter_ws4py_handshake_error(unexpected_exception_event) is True
コード例 #6
0
ファイル: filters_test.py プロジェクト: hypothesis/h
 def test_it_doesnt_filter_other_logger_events(self, unexpected_logger_event):
     assert filters.filter_ws4py_handshake_error(unexpected_logger_event) is True
コード例 #7
0
ファイル: filters_test.py プロジェクト: hypothesis/h
 def test_doesnt_filter_out_other_HandshakeErrors(self):
     event = exception_event(ws4py.exc.HandshakeError("Some other message"))
     assert filters.filter_ws4py_handshake_error(event) is True
コード例 #8
0
ファイル: filters_test.py プロジェクト: hypothesis/h
 def test_it_filters_HandshakeError_HTTP_UPGRADE_events(self):
     event = exception_event(
         ws4py.exc.HandshakeError("Header HTTP_UPGRADE is not defined")
     )
     assert filters.filter_ws4py_handshake_error(event) is False