Debian Codegraph @

tests/test_auth.py

raw
1 from .utils import DeprecationTestCase
2
3
4 class BackwardsCompatibilityTests(DeprecationTestCase):
5 def test_headers_class(self):
6 with self.assertDeprecationWarning(
7 "websockets.auth, an alias for websockets.legacy.auth, is deprecated; "
8 "see https://websockets.readthedocs.io/en/stable/howto/upgrade.html "
9 "for upgrade instructions",
10 ):
11 from websockets.auth import (
12 BasicAuthWebSocketServerProtocol, # noqa: F401
13 basic_auth_protocol_factory, # noqa: F401
14 )