@@ -0,0 +1,1876 @@
+# Case Conductor is a Test Case Management system.%0A# Copyright (C) 2011-12 Mozilla%0A#%0A# This file is part of Case Conductor.%0A#%0A# Case Conductor is free software: you can redistribute it and/or modify%0A# it under the terms of the GNU General Public License as published by%0A# the Free Software Foundation, either version 3 of the License, or%0A# (at your option) any later version.%0A#%0A# Case Conductor is distributed in the hope that it will be useful,%0A# but WITHOUT ANY WARRANTY; without even the implied warranty of%0A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A# GNU General Public License for more details.%0A#%0A# You should have received a copy of the GNU General Public License%0A# along with Case Conductor.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A%22%22%22%0ATests for results finder.%0A%0A%22%22%22%0Afrom django.core.urlresolvers import reverse%0A%0Afrom tests import case%0A%0A%0A%0Aclass CaseColumnTest(case.DBTestCase):%0A    %22%22%22Tests for results finder CaseColumn.%22%22%22%0A    @property%0A    def column(self):%0A        %22%22%22The Column class under test.%22%22%22%0A        from cc.view.results.finders import CaseColumn%0A        return CaseColumn%0A%0A%0A    def test_goto_url(self):%0A        %22%22%22goto_url returns results list url for given RCV.%22%22%22%0A        c = self.column(%0A            None,%0A            None,%0A            self.model.RunCaseVersion.objects.all(),%0A            %22results_results%22,%0A            )%0A        rcv = self.F.RunCaseVersionFactory.create()%0A%0A        url = c.goto_url(rcv)%0A%0A        self.assertEqual(%0A            url, reverse(%22results_results%22, kwargs=%7B%22rcv_id%22: rcv.id%7D))%0A%0A%0A    def test_no_goto_url(self):%0A        %22%22%22goto_url still returns None if no url name given.%22%22%22%0A        c = self.column(%0A            None,%0A            None,%0A            self.model.RunCaseVersion.objects.all(),%0A            )%0A        rcv = self.F.RunCaseVersionFactory.create()%0A%0A        self.assertIsNone(c.goto_url(rcv))%0A

Add tests for results finder.