/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_command.py

  • Committer: John Arbash Meinel
  • Date: 2006-08-22 21:31:23 UTC
  • mto: This revision was merged to the branch mainline in revision 1953.
  • Revision ID: john@arbash-meinel.com-20060822213123-15cf5e4c6a9ab4d2
Don't raise UnicodeCommand on request, instead just let it fall out when we get to NoSuchCommand

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        self.assertRaises(IOError, other_thrower)
42
42
 
43
43
    def test_unicode_command(self):
44
 
        self.assertRaises(errors.UnicodeCommand,
 
44
        # This error is thrown when we can't find the command in the
 
45
        # list of available commands
 
46
        self.assertRaises(errors.BzrCommandError,
45
47
                          commands.run_bzr, [u'cmd\xb5'])
 
48
 
 
49
    def test_unicode_option(self):
 
50
        # This error is actually thrown by optparse, when it
 
51
        # can't find the given option
 
52
        self.assertRaises(errors.BzrCommandError,
 
53
                          commands.run_bzr, ['log', u'--option\xb5'])
 
54