> > === added file > 'lib/lp/translations/browser/tests/test_translationimportqueueentry.py' > > --- lib/lp/translations/browser/tests/test_translationimportqueueentry.py > 1970-01-01 00:00:00 +0000 > > +++ lib/lp/translations/browser/tests/test_translationimportqueueentry.py > 2010-02-10 13:06:21 +0000 > > @@ -0,0 +1,165 @@ > > +# Copyright 2010 Canonical Ltd. This software is licensed under the > > +# GNU Affero General Public License version 3 (see the file LICENSE). > > + > > +"""Unit tests for translation import queue views.""" > > + > > +from datetime import datetime > > +from pytz import timezone > > +from unittest import TestLoader > > + > > +from zope.component import getMultiAdapter > > +from zope.security.proxy import removeSecurityProxy > > + > > +from canonical.testing import LaunchpadFunctionalLayer > > + > > +from canonical.launchpad.layers import TranslationsLayer, setFirstLayer > > +from canonical.launchpad.webapp import canonical_url > > +from canonical.launchpad.webapp.servers import LaunchpadTestRequest > > +from lp.registry.model.sourcepackage import SourcePackage > > +from lp.testing import TestCaseWithFactory > > +from lp.translations.model.translationimportqueue import ( > > + TranslationImportQueue) > > Don't you get an warnings about this? Should test code be importing from > model code? I thought I remember that rule (and it makes sense if we > profess to test against Interfaces). No warnings, but now that you mention it, I'm not sure this is allowed. Changed. > > +class TestTranslationImportQueueEntryView(TestCaseWithFactory): > > + """Tests for the queue entry review form.""" > > + > > + layer = LaunchpadFunctionalLayer > > + > > + def setUp(self): > > + super(TestTranslationImportQueueEntryView, self).setUp( > > + '