~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/librarian/testing/server.py

  • Committer: Jelmer Vernooij
  • Date: 2011-08-22 21:04:00 UTC
  • mfrom: (13261.7.21 bzr-2.4b4)
  • mto: This revision was merged to the branch mainline in revision 13941.
  • Revision ID: jelmer@canonical.com-20110822210400-3hfq31q2wgrtauad
Merge bzr-2.4b4.

Show diffs side-by-side

added added

removed removed

Lines of Context:
228
228
        """Get a list with the contents of the librarian log in it."""
229
229
        return open(self.logfile, 'rb').readlines()
230
230
 
 
231
    def reset(self):
 
232
        """Reset the librarian to a consistent initial state."""
 
233
        self.clear()
 
234
        self.truncateLog()
 
235
 
231
236
 
232
237
def fillLibrarianFile(fileid, content='Fake Content'):
233
238
    """Write contents in disk for a librarian sampledata."""