Return-Path: X-Original-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 20E1DEF84 for ; Tue, 22 Jan 2013 23:23:20 +0000 (UTC) Received: (qmail 43352 invoked by uid 500); 22 Jan 2013 23:23:20 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 43275 invoked by uid 500); 22 Jan 2013 23:23:20 -0000 Mailing-List: contact allura-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-commits@incubator.apache.org Received: (qmail 42292 invoked by uid 99); 22 Jan 2013 23:23:18 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jan 2013 23:23:18 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id B6DEC822FE1; Tue, 22 Jan 2013 23:23:18 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: johnsca@apache.org To: allura-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: [3/50] git commit: [#4339] ticket:237 test for 'move ticket' page Message-Id: <20130122232318.B6DEC822FE1@tyr.zones.apache.org> Date: Tue, 22 Jan 2013 23:23:18 +0000 (UTC) [#4339] ticket:237 test for 'move ticket' page Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/8b41346b Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/8b41346b Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/8b41346b Branch: refs/heads/cj/4691 Commit: 8b41346be785ba27972d8656dbf21f730d629f6e Parents: a594dda Author: Igor Bondarenko Authored: Thu Dec 13 13:58:12 2012 +0000 Committer: Cory Johns Committed: Fri Jan 18 21:53:18 2013 +0000 ---------------------------------------------------------------------- .../forgetracker/tests/functional/test_root.py | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/8b41346b/ForgeTracker/forgetracker/tests/functional/test_root.py ---------------------------------------------------------------------- diff --git a/ForgeTracker/forgetracker/tests/functional/test_root.py b/ForgeTracker/forgetracker/tests/functional/test_root.py index 549964c..ad41056 100644 --- a/ForgeTracker/forgetracker/tests/functional/test_root.py +++ b/ForgeTracker/forgetracker/tests/functional/test_root.py @@ -1057,6 +1057,17 @@ class TestFunctionalController(TrackerTestController): # not found and has not import_id self.app.get('/p/test/bugs/42042/', status=404) + @td.with_tool('test', 'Tickets', 'bugs2') + @td.with_tool('test2', 'Tickets', 'bugs') + @td.with_tool('test2', 'Tickets', 'bugs2') + def test_move_ticket(self): + self.new_ticket(summary='test') + r = self.app.get('/p/test/bugs/1/move') + trackers = r.html.find('select', {'name': 'tracker'}).findAll('option') + trackers = set([t.text for t in trackers]) + expected = set(['test/bugs', 'test/bugs2', 'test2/bugs', 'test2/bugs2']) + assert trackers == expected, trackers + class TestMilestoneAdmin(TrackerTestController): def _post(self, params, **kw):