/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_log.py

  • Committer: Aaron Bentley
  • Date: 2008-12-10 01:55:47 UTC
  • mto: This revision was merged to the branch mainline in revision 3926.
  • Revision ID: aaron@aaronbentley.com-20081210015547-jb33j6v5zuvtbiq9
new/old sections are omitted as appropriate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1232
1232
        self.assertEqual(s.getvalue(),
1233
1233
            'Nothing seems to have changed\n')
1234
1234
 
 
1235
    def test_show_branch_change_no_old(self):
 
1236
        tree = self.setup_ab_tree()
 
1237
        s = StringIO()
 
1238
        log.show_branch_change(2, '2b', tree.branch, s)
 
1239
        self.assertContainsRe(s.getvalue(), 'Added Revisions:')
 
1240
        self.assertNotContainsRe(s.getvalue(), 'Removed Revisions:')
 
1241
 
 
1242
    def test_show_branch_change_no_new(self):
 
1243
        tree = self.setup_ab_tree()
 
1244
        tree.branch.set_last_revision_info(2, '2b')
 
1245
        s = StringIO()
 
1246
        log.show_branch_change(3, '3b', tree.branch, s)
 
1247
        self.assertContainsRe(s.getvalue(), 'Removed Revisions:')
 
1248
        self.assertNotContainsRe(s.getvalue(), 'Added Revisions:')