~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__static_tuple.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-02-18 01:10:16 UTC
  • mfrom: (4763.2.3 st-size-exceptions)
  • Revision ID: pqm@pqm.ubuntu.com-20100218011016-cx9drbdydd2xmu2p
(mbp) clean up exceptions from StaticTuple_New

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
    def test_create_bad_args(self):
78
78
        args_256 = ['a']*256
79
79
        # too many args
80
 
        self.assertRaises(ValueError, self.module.StaticTuple, *args_256)
 
80
        self.assertRaises(TypeError, self.module.StaticTuple, *args_256)
81
81
        args_300 = ['a']*300
82
 
        self.assertRaises(ValueError, self.module.StaticTuple, *args_300)
 
82
        self.assertRaises(TypeError, self.module.StaticTuple, *args_300)
83
83
        # not a string
84
84
        self.assertRaises(TypeError, self.module.StaticTuple, object())
85
85