예제 #1
0
    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)
예제 #2
0
    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)
예제 #3
0
    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)