~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/windmill/testing.py

  • Committer: Curtis Hovey
  • Date: 2011-05-27 21:53:34 UTC
  • mto: This revision was merged to the branch mainline in revision 13136.
  • Revision ID: curtis.hovey@canonical.com-20110527215334-jqlkmt52nnl4bpeh
Moved launchpad.event into registry interfaces.

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
 
 
4
"""Registry-specific testing infrastructure for Windmill."""
 
5
 
 
6
__metaclass__ = type
 
7
__all__ = [
 
8
    'RegistryWindmillLayer',
 
9
    'RegistryYUITestLayer',
 
10
    ]
 
11
 
 
12
 
 
13
from canonical.testing.layers import (
 
14
    BaseWindmillLayer,
 
15
    BaseYUITestLayer,
 
16
    )
 
17
 
 
18
 
 
19
class RegistryWindmillLayer(BaseWindmillLayer):
 
20
    """Layer for Registry Windmill tests."""
 
21
 
 
22
    @classmethod
 
23
    def setUp(cls):
 
24
        cls.base_url = cls.appserver_root_url()
 
25
        super(RegistryWindmillLayer, cls).setUp()
 
26
 
 
27
 
 
28
class RegistryYUITestLayer(BaseYUITestLayer):
 
29
    """Layer for Code YUI tests."""
 
30
 
 
31
    @classmethod
 
32
    def setUp(cls):
 
33
        cls.base_url = cls.appserver_root_url()
 
34
        super(RegistryYUITestLayer, cls).setUp()