~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/scripts/__init__.py

  • Committer: Curtis Hovey
  • Date: 2011-12-28 17:03:06 UTC
  • mto: This revision was merged to the branch mainline in revision 14605.
  • Revision ID: curtis.hovey@canonical.com-20111228170306-n9fz94h85ckaoaf3
Separate test-authoring classes from test-running classes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    # When in testing mode, prevent some cases of erroneous layer usage.
59
59
    # But we don't want to import that module in production usage, thus
60
60
    # the conditional block.
61
 
    if 'canonical.testing.layers' in sys.modules:
62
 
        from canonical.testing.layers import (
 
61
    if 'lp.testing.layers' in sys.modules:
 
62
        from lp.testing.layers import (
63
63
                FunctionalLayer, BaseLayer, ZopelessLayer)
64
64
        assert not FunctionalLayer.isSetUp, \
65
65
                'Setting up Zopeless CA when Zopefull CA is already running'