'A WebSocketApp should forward the received mask_key function down
to the actual socket.'

@unittest.skipUnless(TEST_WITH_INTERNET, 'Internet-requiring    tests    are    disabled')
def testSockMaskKey(self):

    def my_mask_key_func():
        pass
    def on_open(self, *args, **kwargs):
        '    Set    the    value    so    the    test    can    use    it    later    on    and    immediately\n                                                close    the    connection.\n                                                '
        WebSocketAppTest.get_mask_key_id = id(self.get_mask_key)
        self.close()
    app = ws.WebSocketApp('ws://echo.websocket.org/', on_open=on_open, get_mask_key=my_mask_key_func)
    app.run_forever()
    self.assertEqual(WebSocketAppTest.get_mask_key_id, id(my_mask_key_func))
