'ws link is dynamically created'

def test_dl_1(self, *args):

    body = 'header<script>new    WebSocket(url("data"))\n                                                                function    url(s)    {\n                                                                var    l    =    window.location;\n                                                                return    ((l.protocol    ===    "https:")    ?    "wss://"    :    "ws://")    +\n                                                                l.hostname    +    (((l.port    !=    80)    &&\n                                                                (l.port    !=    443))    ?    ":"    +    l.port    :    "")    +\n                                                                l.pathname    +    s;}</script>footer'
    url = URL('https://www.w3af.com/')
    headers = Headers([('content-type', 'text/html')])
    response = HTTPResponse(200, body, headers, url, url, _id=1)
    request = FuzzableRequest(url, method='GET')
    self.plugin.grep(request, response)
    self.assertEqual(len(kb.kb.get('websockets_links', 'websockets_links')), 0)
