~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/librarian/ftests/test_storage.py

  • Committer: William Grant
  • Date: 2011-12-22 05:37:22 UTC
  • mto: This revision was merged to the branch mainline in revision 14581.
  • Revision ID: william.grant@canonical.com-20111222053722-gm6h9zi3lioz00ky
Move librarian stuff from canonical.launchpad to lp.services.librarian. canonical.librarian remains untouched.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
import tempfile
7
7
import unittest
8
8
 
9
 
from canonical.librarian.storage import LibrarianStorage, DigestMismatchError
10
 
from canonical.librarian.storage import LibraryFileUpload, DuplicateFileIDError
 
9
from canonical.database.sqlbase import flush_database_updates
11
10
from canonical.librarian import db
12
 
from canonical.database.sqlbase import flush_database_updates
13
 
from canonical.launchpad.database.librarian import LibraryFileContent
 
11
from canonical.librarian.storage import (
 
12
    DigestMismatchError,
 
13
    DuplicateFileIDError,
 
14
    LibrarianStorage,
 
15
    LibraryFileUpload,
 
16
    )
14
17
from canonical.testing.layers import LaunchpadZopelessLayer
 
18
from lp.services.librarian.model import LibraryFileContent
15
19
 
16
20
 
17
21
class LibrarianStorageDBTests(unittest.TestCase):