~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/versioning.py

  • Committer: Martin Pool
  • Date: 2005-06-22 07:56:51 UTC
  • Revision ID: mbp@sourcefrog.net-20050622075651-f953927f9c1aa426
- More tests for bzr mkdir

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        run_bzr(['bzr', 'mkdir', 'foo'])
31
31
        self.assert_(os.path.isdir('foo'))
32
32
 
 
33
        self.assertRaises(OSError, run_bzr, ['bzr', 'mkdir', 'foo'])
 
34
 
 
35
        from bzrlib.diff import compare_trees, TreeDelta
 
36
        from bzrlib.branch import Branch
 
37
        b = Branch('.')
 
38
        
 
39
        delta = compare_trees(b.basis_tree(), b.working_tree())
 
40
 
 
41
        self.assertEquals(len(delta.added), 1)
 
42
        self.assertEquals(delta.added[0][0], 'foo')
 
43
        self.failIf(delta.modified)
 
44