~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/blackbox.py

  • Committer: Aaron Bentley
  • Date: 2009-06-11 02:05:44 UTC
  • Revision ID: aaron@aaronbentley.com-20090611020544-d6wqib7gki68o3u0
Implement create-mirror command

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
        self.assertEqual(os.lstat(checkout2.abspath('file')).st_ino,
170
170
                         os.lstat(source.abspath('file')).st_ino)
171
171
 
 
172
    def test_create_mirror(self):
 
173
        source = self.make_branch_and_tree('source')
 
174
        source.commit('message')
 
175
        self.run_bzr('create-mirror source target')
 
176
        target = branch.Branch.open('target')
 
177
        self.assertEqual(source.last_revision(), target.last_revision())
 
178
        self.assertEqual(source.branch.base, target.get_public_branch())
 
179
 
172
180
 
173
181
def test_suite():
174
182
    return makeSuite(TestBzrTools)