示例#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
 def test_it_doesnt_filter_exception_events(self, unexpected_exception_event):
     assert filters.filter_ws4py_handshake_error(unexpected_exception_event) is True
示例#6
0
 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
 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
 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