~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/test_mirror.py

  • Committer: Aaron Bentley
  • Date: 2009-07-10 04:05:24 UTC
  • Revision ID: aaron@aaronbentley.com-20090710040524-slufgm4he3fx1r4f
Mirror the child_submit_to setting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
        self.addCleanup(source.unlock)
39
39
        source.nick = 'my special nick'
40
40
        source.set_submit_branch(':submit:')
 
41
        source.get_config().set_user_option('child_submit_to', 'a@b.com')
41
42
        self.commit_transform(source, self.make_transform(source))
42
43
        mirror = create_mirror(source, 'target', [])
43
44
        self.assertEqual(source.last_revision(), mirror.last_revision())
45
46
        self.assertEqual(source.base, mirror.get_parent())
46
47
        self.assertEqual('my special nick', mirror.nick)
47
48
        self.assertEqual(':submit:', mirror.get_submit_branch())
 
49
        self.assertEqual('a@b.com', mirror.get_config().get_user_option(
 
50
                         'child_submit_to'))
48
51
 
49
52
    def test_nonexplict_nick(self):
50
53
        source = self.make_branch('source')