Exemplo n.º 1
0
 def test_it_doesnt_filter_exception_events(self, unexpected_exception_event):
     assert filters.filter_ws4py_handshake_error(unexpected_exception_event) is True
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 5
0
 def test_it_doesnt_filter_exception_events(self, unexpected_exception_event):
     assert filters.filter_ws4py_handshake_error(unexpected_exception_event) is True
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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