~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests.py

  • Committer: Martin Pool
  • Date: 2005-05-03 12:37:47 UTC
  • Revision ID: mbp@sourcefrog.net-20050503123747-3b9bbc50a3542863
- more testcase fixes
- remove test.sh in favour of testbzr

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
>>> import bzrlib, os
31
31
>>> from bzrlib import ScratchBranch
32
32
>>> from bzrlib.osutils import isdir, isfile
33
 
>>> bzrlib.commands.cmd_rocks()
34
 
it sure does!
35
 
 
36
 
Hey, nice place to begin.
37
33
 
38
34
The basic object is a Branch.  We have a special helper class
39
35
ScratchBranch that automatically makes a directory and cleans itself
211
207
    foo => subdir/foo
212
208
    >>> b.show_status()
213
209
    R       foo => subdir/foo
214
 
    >>> bzrlib.commands.cmd_renames(b.base)
215
 
    foo => subdir/foo
216
210
    >>> b.commit("move foo to subdir")
217
211
    >>> isfile(b.abspath('foo'))
218
212
    False