~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commands.py

  • Committer: Martin Pool
  • Date: 2011-04-19 03:23:05 UTC
  • mto: This revision was merged to the branch mainline in revision 5802.
  • Revision ID: mbp@sourcefrog.net-20110419032305-6qzm1yo30x56dnu2
Fix slightly broken test

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
 
94
94
class TestInvokedAs(tests.TestCase):
95
95
 
96
 
    def setUp(self):
97
 
        super(TestCommandDeprecation, self).setUp()
98
 
        commands.install_bzr_command_hooks()
99
 
        commands._register_builtin_commands()
100
 
 
101
96
    def test_invoked_as(self):
102
97
        """The command object knows the actual name used to invoke it."""
 
98
        commands.install_bzr_command_hooks()
 
99
        commands._register_builtin_commands()
103
100
        # get one from the real get_cmd_object.
104
101
        c = commands.get_cmd_object('ci')
105
102
        self.assertIsInstance(c, builtins.cmd_commit)