~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commands.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-04-23 02:09:44 UTC
  • mfrom: (2432.1.33 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070423020944-lcu3twk2zj27bw5a
(robertc) Fix bugs 107656 and 50408 by creating multiple help indices and cross referencing between them when user help requests are ambiguous. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
            _see_also = ['foo', 'bar']
126
126
        command = ACommand()
127
127
        self.assertEqual(['bar', 'foo'], command.get_see_also())
 
128
 
 
129
    def test_additional_terms(self):
 
130
        """Additional terms can be supplied and are deduped and sorted."""
 
131
        class ACommand(commands.Command):
 
132
            _see_also = ['foo', 'bar']
 
133
        command = ACommand()
 
134
        self.assertEqual(['bar', 'foo', 'gam'],
 
135
            command.get_see_also(['gam', 'bar', 'gam']))
 
136