'Issue to verify https://github.com/andresriancho/w3af/issues/106'

def test_issue_106_invalid_url(self):

    sharepoint_pl = file(self.HTML_FILE).read()
    parser = document_parser_factory(_build_http_response(sharepoint_pl, u'text/html'))
    self.assertIsInstance(parser, DocumentParser)
    self.assertIsInstance(parser._parser, HTMLParser)
    paths = []
    paths.extend((url.get_path_qs() for url in parser.get_references()[0]))
    paths.extend((url.get_path_qs() for url in parser.get_references()[1]))
    expected_paths = {'/szukaj/_vti_bin/search.asmx', '/_vti_bin/search.asmx?disco='}
    self.assertEqual(expected_paths, set(paths))
