/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_merge.py

  • Committer: Andrew Bennetts
  • Date: 2011-06-02 07:25:33 UTC
  • mfrom: (5952 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5955.
  • Revision ID: andrew.bennetts@canonical.com-20110602072533-v0pe1ivh27cp0pd8
MergeĀ lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2863
2863
 
2864
2864
    def get_merger_factory(self):
2865
2865
        # Allows  the inner methods to access the test attributes
2866
 
        test = self
 
2866
        calls = self.calls
2867
2867
 
2868
2868
        class FooMerger(_mod_merge.ConfigurableFileMerger):
2869
2869
            name_prefix = "foo"
2870
2870
            default_files = ['bar']
2871
2871
 
2872
2872
            def merge_text(self, params):
2873
 
                test.calls.append('merge_text')
 
2873
                calls.append('merge_text')
2874
2874
                return ('not_applicable', None)
2875
2875
 
2876
2876
        def factory(merger):