def testIssueListURL_Customized_RetainQS(self): _request, mr = testing_helpers.GetRequestObjects( path='/p/proj/issues', project=self.project, user_info={'effective_ids': {111}}) self.config.member_default_query = 'owner:me' url = servlet_helpers.IssueListURL(mr, self.config, query_string='') self.assertEqual('/p/proj/issues/list?q=owner%3Ame', url) url = servlet_helpers.IssueListURL(mr, self.config, query_string='q=Pri=1') self.assertEqual('/p/proj/issues/list?q=Pri=1', url)
def testIssueListURL_Customized_Nonmember(self): _request, mr = testing_helpers.GetRequestObjects(path='/p/proj/issues', project=self.project) self.config.member_default_query = 'owner:me' url = servlet_helpers.IssueListURL(mr, self.config) self.assertEqual('/p/proj/issues/list', url)
def testIssueListURL_NotCustomized(self): _request, mr = testing_helpers.GetRequestObjects(path='/p/proj/issues', project=self.project) url = servlet_helpers.IssueListURL(mr, self.config) self.assertEqual('/p/proj/issues/list', url)