~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_branch.py

Merge bzr.dev and tree-file-ids-as-tuples.

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
        work = branch.Branch.open('current')
157
157
        self.assertEqual(work.last_revision(), _mod_revision.NULL_REVISION)
158
158
 
 
159
    def test_branch_into_empty_dir(self):
 
160
        t = self.example_branch('source')
 
161
        self.make_bzrdir('target')
 
162
        self.run_bzr("branch source target")
 
163
        self.assertEquals(2, len(t.branch.repository.all_revision_ids()))
 
164
 
159
165
    def test_branch_switch_checkout(self):
160
166
        # Checkout in the current directory:
161
167
        #  => new branch will be created and checkout bound to the new branch