~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests.py

  • Committer: Martin Pool
  • Date: 2005-03-15 05:19:54 UTC
  • Revision ID: mbp@sourcefrog.net-20050315051954-e4bdd6dfd26f8ecf
witty comment

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
These are run by ``bzr.doctest``.
29
29
 
30
30
>>> import bzr, bzrlib, os
31
 
>>> bzr.cmd_rocks()
 
31
>>> bzrlib.commands.cmd_rocks()
32
32
it sure does!
33
33
 
34
34
Hey, nice place to begin.
39
39
 
40
40
ScratchBranches are initially empty:
41
41
 
42
 
>>> b = bzr.ScratchBranch()
 
42
>>> b = bzrlib.ScratchBranch()
43
43
>>> b.show_status()
44
44
 
45
45
New files in that directory are, it is initially unknown:
103
103
  >>> r = b.get_revision(b.lookup_revision(1))
104
104
  >>> r.message
105
105
  'start hello world'
106
 
  >>> b.write_log(utc=True)
 
106
  >>> b.write_log(show_timezone='utc')
107
107
  ----------------------------------------
108
108
  revno: 1
109
109
  committer: foo@nowhere
110
 
  timestamp: Thu 1970-01-01 00:00:00 UTC +0000
 
110
  timestamp: Thu 1970-01-01 00:00:00 +0000
111
111
  message:
112
112
    start hello world
113
113