~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/librarianserver/tests/test_web.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-12-30 10:09:30 UTC
  • mfrom: (14606.2.8 apocalibrarian)
  • Revision ID: launchpad@pqm.canonical.com-20111230100930-kp3e0l6wakissewm
[r=wgrant][no-qa] Move canonical.librarian to
        lp.services.librarian(server).

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
import transaction
18
18
from zope.component import getUtility
19
19
 
20
 
from lp.services.config import config
21
20
from canonical.database.sqlbase import (
22
21
    cursor,
23
22
    flush_database_updates,
24
23
    session_store,
25
24
    )
26
 
from canonical.librarian.client import (
 
25
from lp.services.config import config
 
26
from lp.services.database.lpstorm import IMasterStore
 
27
from lp.services.librarian.client import (
27
28
    get_libraryfilealias_download_path,
28
29
    LibrarianClient,
29
30
    )
30
 
from canonical.librarian.interfaces import DownloadFailed
31
 
from lp.testing.layers import (
32
 
    LaunchpadFunctionalLayer,
33
 
    LaunchpadZopelessLayer,
34
 
    )
35
 
from lp.services.database.lpstorm import IMasterStore
36
31
from lp.services.librarian.interfaces import ILibraryFileAliasSet
 
32
from lp.services.librarian.interfaces.client import DownloadFailed
37
33
from lp.services.librarian.model import (
38
34
    LibraryFileAlias,
39
35
    TimeLimitedToken,
40
36
    )
 
37
from lp.testing.layers import (
 
38
    LaunchpadFunctionalLayer,
 
39
    LaunchpadZopelessLayer,
 
40
    )
41
41
 
42
42
 
43
43
def uri_path_replace(url, old, new):