~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/browser/tests/test_bugtask.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-11-17 17:17:38 UTC
  • mfrom: (14241.3.94 field-visibility-dry)
  • Revision ID: launchpad@pqm.canonical.com-20111117171738-ouyh30ndpee8dq1w
[r=abentley][no-qa] Ensure BugListingConfigUtil gets default values
 for field_visibility from LP.cache.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1815
1815
        field_visibility = cache.objects['field_visibility']
1816
1816
        self.assertTrue(field_visibility['show_title'])
1817
1817
 
 
1818
    def test_cache_field_visibility_defaults(self):
 
1819
        """Cache contains sane-looking field_visibility_defaults values."""
 
1820
        task = self.factory.makeBugTask()
 
1821
        with self.dynamic_listings():
 
1822
            view = self.makeView(task, memo=1, forwards=False, size=1)
 
1823
        cache = IJSONRequestCache(view.request)
 
1824
        field_visibility_defaults = cache.objects['field_visibility_defaults']
 
1825
        self.assertTrue(field_visibility_defaults['show_title'])
 
1826
 
1818
1827
    def getBugtaskBrowser(self, title=None, no_login=False):
1819
1828
        """Return a browser for a new bugtask."""
1820
1829
        bugtask = self.factory.makeBugTask()