~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/librarianserver/tests/test_gc.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:
20
20
from sqlobject import SQLObjectNotFound
21
21
import transaction
22
22
 
23
 
from lp.services.config import config
24
23
from canonical.database.sqlbase import (
25
24
    connect,
26
25
    cursor,
27
26
    ISOLATION_LEVEL_AUTOCOMMIT,
28
27
    )
29
 
from canonical.librarian import librariangc
30
 
from canonical.librarian.client import LibrarianClient
31
 
from lp.testing.layers import LaunchpadZopelessLayer
 
28
from lp.services.config import config
 
29
from lp.services.librarian.client import LibrarianClient
32
30
from lp.services.librarian.model import (
33
31
    LibraryFileAlias,
34
32
    LibraryFileContent,
35
33
    )
 
34
from lp.services.librarianserver import librariangc
36
35
from lp.services.log.logger import BufferLogger
37
36
from lp.services.utils import utc_now
38
37
from lp.testing import TestCase
 
38
from lp.testing.layers import LaunchpadZopelessLayer
39
39
 
40
40
 
41
41
class TestLibrarianGarbageCollection(TestCase):