~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Curtis Hovey
  • Date: 2011-12-28 17:03:06 UTC
  • mto: This revision was merged to the branch mainline in revision 14605.
  • Revision ID: curtis.hovey@canonical.com-20111228170306-n9fz94h85ckaoaf3
Separate test-authoring classes from test-running classes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
identical. Note the overhead involved in attempting to contact the
34
34
Librarian is not significant.
35
35
 
36
 
>>> from canonical.testing.layers import LibrarianLayer
 
36
>>> from lp.testing.layers import LibrarianLayer
37
37
>>> LibrarianLayer.hide()
38
38
 
39
39
>>> from lp.services.utils import utc_now
87
87
to force the DatabaseLayer to fully tear down and restore the database
88
88
after this test.
89
89
 
90
 
>>> from canonical.testing.layers import DatabaseLayer
 
90
>>> from lp.testing.layers import DatabaseLayer
91
91
>>> DatabaseLayer.force_dirty_database()
92
92
 
93
93
We keep exceptions from expiring for about 3 months.