def test_allows_ampersand_in_anchor(self): # Reproducer for https://bugs.launchpad.net/gtg/+bug/1023555 url = "http://test.com/#hi&there" matched_url = match(url).group(0) self.assertEqual(url, matched_url)
def test_anchor_amperstand(self): """ Reproducer for bug #1023555 """ url = "http://test.com/#hi&there" self.assertEqual(match(url).group(0), url)