def testURLQuery(self):
     # This is a bugzilla 5.0 instance, which supports URL queries now
     query_url = ("https://bugs.gentoo.org/buglist.cgi?"
         "component=[CS]&product=Doc%20Translations"
         "&query_format=advanced&resolution=FIXED")
     bz = Bugzilla(url=self.url, use_creds=False)
     ret = bz.query(bz.url_to_query(query_url))
     self.assertTrue(len(ret) > 0)
 def testURLQuery(self):
     # This is a bugzilla 5.0 instance, which supports URL queries now
     query_url = ("https://bugs.gentoo.org/buglist.cgi?"
         "component=[CS]&product=Doc%20Translations"
         "&query_format=advanced&resolution=FIXED")
     bz = Bugzilla(url=self.url, use_creds=False)
     ret = bz.query(bz.url_to_query(query_url))
     assert len(ret) > 0
 def testURLQuery(self):
     # This instance is old and doesn't support URL queries, we are
     # just verifying our extra error message report
     query_url = ("https://bugzilla.gnome.org/buglist.cgi?"
         "bug_status=RESOLVED&order=Importance&product=accerciser"
         "&query_format=advanced&resolution=NOTABUG")
     bz = Bugzilla(url=self.url, use_creds=False)
     try:
         bz.query(bz.url_to_query(query_url))
     except BugzillaError as e:
         assert "derived from bugzilla" in str(e)
 def testURLQuery(self):
     # This instance is old and doesn't support URL queries, we are
     # just verifying our extra error message report
     query_url = ("https://bugzilla.gnome.org/buglist.cgi?"
         "bug_status=RESOLVED&order=Importance&product=accerciser"
         "&query_format=advanced&resolution=NOTABUG")
     bz = Bugzilla(url=self.url, use_creds=False)
     try:
         bz.query(bz.url_to_query(query_url))
     except BugzillaError as e:
         assert "derived from bugzilla" in str(e)