~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/test_mirror.py

  • Committer: Aaron Bentley
  • Date: 2009-06-11 23:40:26 UTC
  • Revision ID: aaron@aaronbentley.com-20090611234026-0y2z4rg0bivyduok
Copy submit branch in create_mirror.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
        source.lock_write()
38
38
        self.addCleanup(source.unlock)
39
39
        source.nick = 'my special nick'
 
40
        source.set_submit_branch(':submit:')
40
41
        self.commit_transform(source, self.make_transform(source))
41
42
        mirror = create_mirror(source, 'target', [])
42
43
        self.assertEqual(source.last_revision(), mirror.last_revision())
43
44
        self.assertEqual(source.base, mirror.get_public_branch())
44
45
        self.assertEqual(source.base, mirror.get_parent())
45
46
        self.assertEqual('my special nick', mirror.nick)
 
47
        self.assertEqual(':submit:', mirror.get_submit_branch())
46
48
 
47
49
    def test_nonexplict_nick(self):
48
50
        source = self.make_branch('source')