~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_transport.py

  • Committer: Jonathan Riddell
  • Date: 2011-09-12 14:27:05 UTC
  • mto: This revision was merged to the branch mainline in revision 6131.
  • Revision ID: jriddell@canonical.com-20110912142705-27tgf1mhyw4hiffo
ignore i18n in test

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
class TestTransport(tests.TestCase):
53
53
    """Test the non transport-concrete class functionality."""
54
54
 
 
55
    def ignore_i18n(self):
 
56
        from bzrlib import i18n
 
57
        i18n.install = lambda: None
 
58
 
55
59
    def test__get_set_protocol_handlers(self):
56
60
        handlers = transport._get_protocol_handlers()
57
61
        self.assertNotEqual([], handlers.keys())
83
87
 
84
88
    def test_transport_dependency(self):
85
89
        """Transport with missing dependency causes no error"""
 
90
        self.ignore_i18n()
86
91
        saved_handlers = transport._get_protocol_handlers()
87
92
        self.addCleanup(transport._set_protocol_handlers, saved_handlers)
88
93
        # don't pollute the current handlers