~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_pull.py

  • Committer: Vincent Ladeuil
  • Date: 2010-01-26 10:17:22 UTC
  • mfrom: (4985.1.5 add-attr-cleanup)
  • mto: This revision was merged to the branch mainline in revision 4988.
  • Revision ID: v.ladeuil+lp@free.fr-20100126101722-y213sv39buw3dgi2
Implement TestCase.overrideAttr to simplify tests setUp/cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
343
343
            def look_up(self, name, url):
344
344
                return 'source'
345
345
        directories.register('foo:', FooService, 'Testing directory service')
346
 
        self.addCleanup(lambda: directories.remove('foo:'))
 
346
        self.addCleanup(directories.remove, 'foo:')
347
347
        self.run_bzr('pull foo:bar -d target')
348
348
        self.assertEqual(source_last, target.last_revision())
349
349