/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commands.py

  • Committer: Jonathan Lange
  • Date: 2007-04-23 06:55:58 UTC
  • mfrom: (2444 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2446.
  • Revision ID: jml@canonical.com-20070423065558-wbkypy8qlhzrxugz
Merge from mainline, resolving conflict in help_topics

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