~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/lazr/testing/layers.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-09 09:23:38 UTC
  • mfrom: (14333.2.13 history-model)
  • Revision ID: launchpad@pqm.canonical.com-20111209092338-se7u5l0skqzaes1v
[r=jcsackett][bug=295214, 894836,
 898200] Keep sort button ob bug listing pages in sync with the
 displayed data

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Copyright 2009 Canonical Ltd.  This software is licensed under the
 
2
# GNU Affero General Public License version 3 (see the file LICENSE).
 
3
"""Miscellaneous testing helpers."""
 
4
 
 
5
__metaclass__ = type
 
6
__all__ = [
 
7
    'MockRootFolder',
 
8
]
 
9
 
 
10
class MockRootFolder:
 
11
    """Implement the minimum functionality required by Z3 ZODB dependencies
 
12
 
 
13
    Installed as part of FunctionalLayer.testSetUp() to allow the http()
 
14
    method (zope.app.testing.functional.HTTPCaller) to work.
 
15
    """
 
16
    @property
 
17
    def _p_jar(self):
 
18
        return self
 
19
    def sync(self):
 
20
        pass