~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/tests/test_translationmessage.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2010-07-30 10:22:14 UTC
  • mfrom: (11151.5.13 variant-migration)
  • Revision ID: launchpad@pqm.canonical.com-20100730102214-98ublov591n4iwe1
[r=jtv][ui=none][bug=611626] Provide a migration script for language
        variants (to fix #29800).

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
__metaclass__ = type
7
7
 
8
 
from unittest import TestLoader
9
 
 
10
8
from zope.component import getUtility
11
9
from zope.security.proxy import removeSecurityProxy
12
10
 
16
14
from lp.translations.interfaces.translations import TranslationConstants
17
15
from canonical.testing import ZopelessDatabaseLayer
18
16
 
 
17
 
19
18
class TestTranslationMessageFindIdenticalMessage(TestCaseWithFactory):
20
19
    """Tests for `TranslationMessage.findIdenticalMessage`."""
21
20
 
151
150
        setattr(self.other_message, last_form, translation)
152
151
        nonclone = self._find(self.other_potmsgset, self.other_template)
153
152
        self.assertEqual(nonclone, None)
154
 
 
155
 
 
156
 
def test_suite():
157
 
    return TestLoader().loadTestsFromName(__name__)