~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__static_tuple.py

merged 376388 related changes for 2.0 patch.

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