~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/browser/tests/test_vocabulary.py

  • Committer: j.c.sackett
  • Date: 2011-08-29 16:13:43 UTC
  • mto: This revision was merged to the branch mainline in revision 13840.
  • Revision ID: jonathan.sackett@canonical.com-20110829161343-nb1ufq3k2korca0m
Lint fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
        self.assertEqual(None, None)
151
151
 
152
152
 
153
 
class TestDistributionSourcePackagePickerEntrySourceAdapter(TestCaseWithFactory):
 
153
class TestDistributionSourcePackagePickerEntrySourceAdapter(
 
154
        TestCaseWithFactory):
154
155
 
155
156
    layer = DatabaseFunctionalLayer
156
157
 
193
194
 
194
195
    def test_product_provides_summary(self):
195
196
        product = self.factory.makeProduct()
196
 
        [entry] = IPickerEntrySource(product).getPickerEntries([product], object())
 
197
        [entry] = IPickerEntrySource(product).getPickerEntries(
 
198
                [product], object())
197
199
        self.assertEqual(entry.description, product.summary)
198
200
 
199
201
 
208
210
 
209
211
    def test_distribution_provides_summary(self):
210
212
        distribution = self.factory.makeDistribution()
211
 
        [entry] = IPickerEntrySource(distribution).getPickerEntries([distribution], object())
 
213
        [entry] = IPickerEntrySource(distribution).getPickerEntries(
 
214
                [distribution], object())
212
215
        self.assertEqual(entry.description, distribution.summary)
213
216
 
214
217