Changes between Initial Version and Version 1 of Ticket #32409, comment 4
- Timestamp:
- Feb 3, 2021, 11:20:37 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #32409, comment 4
initial v1 28 28 async def test_connect(self): 29 29 application = AuthMiddlewareStack(WebsocketConsumer.as_asgi()) 30 communicator = self._connect_to_consumer(application) 30 communicator = WebsocketCommunicator(application, '/test') 31 communicator.scope['user'] = self.user 31 32 connected, _subprotocol = await communicator.connect() 32 33 self.assertTrue(connected)