~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__static_tuple.py

  • Committer: Martin Pool
  • Date: 2010-02-25 06:17:27 UTC
  • mfrom: (5055 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5057.
  • Revision ID: mbp@sourcefrog.net-20100225061727-4sd9lt0qmdc6087t
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009 Canonical Ltd
 
1
# Copyright (C) 2009, 2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
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