~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/fakelibrarian.py

  • Committer: William Grant
  • Date: 2011-12-30 01:48:17 UTC
  • mto: (14606.3.6 apocaremains)
  • mto: This revision was merged to the branch mainline in revision 14608.
  • Revision ID: william.grant@canonical.com-20111230014817-7qmddxz1x941socp
Move the rest of canonical.librarian to lp.services.librarianserver.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Copyright 2010 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
 
"""See canonical.librarian.testing.fake."""
 
4
"""See lp.services.librarianserver.testing.fake."""
5
5
 
6
6
import warnings
7
7
 
8
 
from canonical.librarian.testing.fake import FakeLibrarian as _FakeLibrarian
 
8
from lp.services.librarianserver.testing.fake import (
 
9
    FakeLibrarian as _FakeLibrarian,
 
10
    )
9
11
 
10
12
 
11
13
def FakeLibrarian(*args, **kwargs):
12
14
    """Forward to the new home with a deprecation warning."""
13
15
    warnings.warn("Stale import: please import FakeLibrarian from "
14
 
        "canonical.librarian.testing.fake instead.", DeprecationWarning,
 
16
        "lp.services.librarianserver.testing.fake instead.", DeprecationWarning,
15
17
        stacklevel=2)
16
18
    return _FakeLibrarian(*args, **kwargs)