autobahn.twisted.test.test_tx_protocol
Module Contents¶
Classes¶
Tests that we format various exception variations properly during |
|
Hixie-76 should not be accepted by an Autobahn server. |
|
Test that we match Origin: headers properly, when asked to |
|
Test that (only) a trusted X-Forwarded-For can replace the peer address. |
|
Tests related to onConnecting callback |
- class autobahn.twisted.test.test_tx_protocol.ExceptionHandlingTests(methodName='runTest')[source]¶
Bases:
twisted.trial.unittest.TestCase
Tests that we format various exception variations properly during connectionLost
- class autobahn.twisted.test.test_tx_protocol.Hixie76RejectionTests(methodName='runTest')[source]¶
Bases:
twisted.trial.unittest.TestCase
Hixie-76 should not be accepted by an Autobahn server.
- class autobahn.twisted.test.test_tx_protocol.WebSocketOriginMatching(methodName='runTest')[source]¶
Bases:
twisted.trial.unittest.TestCase
Test that we match Origin: headers properly, when asked to
- class autobahn.twisted.test.test_tx_protocol.WebSocketXForwardedFor(methodName='runTest')[source]¶
Bases:
twisted.trial.unittest.TestCase
Test that (only) a trusted X-Forwarded-For can replace the peer address.
- class autobahn.twisted.test.test_tx_protocol.OnConnectingTests(methodName='runTest')[source]¶
Bases:
twisted.trial.unittest.TestCase
Tests related to onConnecting callback
These tests are testing generic behavior, but are somewhat tied to ‘a framework’ so we’re just testing using Twisted-specifics here.