Exemplo n.º 1
0
 def test_url_args_not_modified(self):
     """
     Setting the proper arguments turns off automatic args addition.
     """
     url = BugzillaURL(url=self.bzurl)
     args = url._get_bz_args(open_only=False, scrum_only=False)
     ok_('bug_status' not in args)
     ok_('status_whiteboard' not in args)
Exemplo n.º 2
0
 def test_url_args_not_modified(self):
     """
     Setting the proper arguments turns off automatic args addition.
     """
     url = BugzillaURL(url=self.bzurl)
     args = url._get_bz_args(open_only=False, scrum_only=False)
     ok_('bug_status' not in args)
     ok_('status_whiteboard' not in args)
Exemplo n.º 3
0
 def test_url_args_override_defaults(self):
     """
     You should still be able to specify your own statuses and whiteboard.
     """
     url = BugzillaURL(url=self.bzurl + ';bug_status=CLOSED'
                                        ';status_whiteboard=u%3Dthedude')
     args = url._get_bz_args()
     eq_(args['bug_status'], 'CLOSED')
     eq_(args['status_whiteboard'], 'u=thedude')
Exemplo n.º 4
0
 def test_url_args_override_defaults(self):
     """
     You should still be able to specify your own statuses and whiteboard.
     """
     url = BugzillaURL(url=self.bzurl + ';bug_status=CLOSED'
                       ';status_whiteboard=u%3Dthedude')
     args = url._get_bz_args()
     eq_(args['bug_status'], 'CLOSED')
     eq_(args['status_whiteboard'], 'u=thedude')
Exemplo n.º 5
0
 def test_bz_args(self):
     """
     args should be added for bug status and whiteboard
     :return:
     """
     statuses = set(['UNCONFIRMED', 'ASSIGNED', 'REOPENED', 'NEW'])
     url = BugzillaURL(url=self.bzurl)
     args = url._get_bz_args()
     self.assertSetEqual(set(args.getlist('bug_status')), statuses)
     eq_(args['status_whiteboard'], 'u= c= p=')
Exemplo n.º 6
0
 def test_bz_args(self):
     """
     args should be added for bug status and whiteboard
     :return:
     """
     statuses = set(['UNCONFIRMED', 'ASSIGNED', 'REOPENED', 'NEW'])
     url = BugzillaURL(url=self.bzurl)
     args = url._get_bz_args()
     self.assertSetEqual(set(args.getlist('bug_status')), statuses)
     eq_(args['status_whiteboard'], 'u= c= p=')