~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/browser/tests/test_sourceslistentries.py

  • Committer: Guilherme Salgado
  • Date: 2010-07-23 08:50:49 UTC
  • mfrom: (11206 launchpad)
  • mto: This revision was merged to the branch mainline in revision 11220.
  • Revision ID: salgado@canonical.com-20100723085049-4m2tmvujxsw2ns40
mergeĀ mainline

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009-2010 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
# pylint: disable-msg=F0401
13
13
    'test_suite',
14
14
    ]
15
15
 
16
 
import unittest
17
 
 
18
16
from lp.testing import TestCaseWithFactory
19
17
 
20
18
from canonical.launchpad.webapp.servers import LaunchpadTestRequest
23
21
from lp.soyuz.browser.sourceslist import (
24
22
    SourcesListEntries, SourcesListEntriesView)
25
23
 
 
24
 
26
25
class TestDefaultSelectedSeries(TestCaseWithFactory):
27
26
    """Ensure that default selected series set from user-agent."""
28
27
 
166
165
        # When there is only one distro series it should always be the
167
166
        # default.
168
167
        self.failUnless(self.view.default_series == self.series[0])
169
 
 
170
 
def test_suite():
171
 
    return unittest.TestLoader().loadTestsFromName(__name__)