def test_gotGlobalRequestWithoutAvatar(self):
        """
        Test that gotGlobalRequests dispatches to global_* without an avatar.
        """
        del self.transport.avatar
        self.assertTrue(self.conn.gotGlobalRequest(b'TestGlobal', b'data'))
        self.assertEqual(self.conn.gotGlobalRequest(b'Test-Data', b'data'),
                (True, b'data'))
        self.assertFalse(self.conn.gotGlobalRequest(b'BadGlobal', b'data'))

        Test that gotGlobalRequests dispatches to global_* without an avatar.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/test/test_connection.py