~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/scripts/tests/librarianformatter.txt

  • 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:
94
94
 
95
95
>>> match = re.search('/(\d+)/', url)
96
96
>>> alias_id = match.group(1)
97
 
>>> from canonical.launchpad.database.librarian import LibraryFileAlias
 
97
>>> from lp.services.librarian.model import LibraryFileAlias
98
98
>>> transaction.abort() # To see db changes made by the librarian
99
99
>>> alias = LibraryFileAlias.get(alias_id)
100
100
>>> alias.expires > utc_now() + timedelta(days=89)