~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_diff.py

  • Committer: Aaron Bentley
  • Date: 2007-12-18 04:15:34 UTC
  • mto: This revision was merged to the branch mainline in revision 3130.
  • Revision ID: aaron.bentley@utoronto.ca-20071218041534-w9spqi20zck44bvd
Diff sorts files in alphabetical order

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