def extract_full_urls(self): urls = set() merged_strings = ' \n'.join(self.get_strings()) for x in URL_RE.findall(merged_strings): try: urls.add(URL(x[0])) except ValueError: pass return urls
def test_jquery_re(self): urls = set() merged_strings = self.get_file_contents('jquery.js') for x in URL_RE.findall(merged_strings): try: urls.add(URL(x[0])) except ValueError: pass return urls