@mock.patch('aiohttp.wsgi.aiohttp')
def test_wsgi_response_101_upgrade_to_websocket(self, m_asyncio):
    srv = self._make_srv()
    resp = srv.create_wsgi_response(self.message)
    resp.start_response('101 Switching Protocols', (('UPGRADE', 'websocket'), ('CONNECTION', 'upgrade')))
    self.assertEqual(resp.status, '101 Switching Protocols')
    self.assertTrue(m_asyncio.Response.return_value.send_headers.called)
@mock.patch('aiohttp.wsgi.aiohttp')
def test_wsgi_response_101_upgrade_to_websocket(self, m_asyncio):
    srv = self._make_srv()
    resp = srv.create_wsgi_response(self.message)
    resp.start_response('101 Switching Protocols', (('UPGRADE', 'websocket'), ('CONNECTION', 'upgrade')))
    self.assertEqual(resp.status, '101 Switching Protocols')
    self.assertTrue(m_asyncio.Response.return_value.send_headers.called)