~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_directory_service.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:
54
54
 
55
55
    def test_get_transport(self):
56
56
        directories.register('foo:', FooService, 'Map foo URLs to http urls')
57
 
        self.addCleanup(lambda: directories.remove('foo:'))
 
57
        self.addCleanup(directories.remove, 'foo:')
58
58
        self.assertEqual(FooService.base + 'bar/',
59
59
                         get_transport('foo:bar').base)
60
60