~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_diff.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-12-19 21:17:25 UTC
  • mfrom: (3123.4.3 no-inventory2)
  • Revision ID: pqm@pqm.ubuntu.com-20071219211725-mgnpnt2keboqflwi
Sort diff results alphabetically

Show diffs side-by-side

added added

removed removed

Lines of Context:
723
723
        self.assertContainsRe(differ.to_file.getvalue(),
724
724
                              'was: old\nis: new\n')
725
725
 
 
726
    def test_alphabetical_order(self):
 
727
        self.build_tree(['new-tree/a-file'])
 
728
        self.new_tree.add('a-file')
 
729
        self.build_tree(['old-tree/b-file'])
 
730
        self.old_tree.add('b-file')
 
731
        self.differ.show_diff(None)
 
732
        self.assertContainsRe(self.differ.to_file.getvalue(),
 
733
            '.*a-file(.|\n)*b-file')
 
734
 
726
735
 
727
736
class TestPatienceDiffLib(TestCase):
728
737