~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_options.py

  • Committer: Robert Collins
  • Date: 2008-09-02 05:28:37 UTC
  • mfrom: (3675 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3677.
  • Revision ID: robertc@robertcollins.net-20080902052837-ec3qlv41q5e7f6fl
Resolve conflicts with NEWS.

Show diffs side-by-side

added added

removed removed

Lines of Context:
256
256
        opts, args = self.parse(options, ['--hello=world', '--hello=sailor'])
257
257
        self.assertEqual(['world', 'sailor'], opts.hello)
258
258
 
 
259
    def test_list_option_with_dash(self):
 
260
        options = [option.ListOption('with-dash', type=str)]
 
261
        opts, args = self.parse(options, ['--with-dash=world',
 
262
                                          '--with-dash=sailor'])
 
263
        self.assertEqual(['world', 'sailor'], opts.with_dash)
 
264
 
259
265
    def test_list_option_no_arguments(self):
260
266
        options = [option.ListOption('hello', type=str)]
261
267
        opts, args = self.parse(options, [])