~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__static_tuple.py

  • Committer: Vincent Ladeuil
  • Date: 2010-02-09 17:15:17 UTC
  • mto: (5029.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5030.
  • Revision ID: v.ladeuil+lp@free.fr-20100209171517-1wzz1nh3d3nhnkbu
Move ReadonlyServer to bzrlib.tests.readonly

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2009 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(TypeError, self.module.StaticTuple, *args_256)
 
80
        self.assertRaises(ValueError, self.module.StaticTuple, *args_256)
81
81
        args_300 = ['a']*300
82
 
        self.assertRaises(TypeError, self.module.StaticTuple, *args_300)
 
82
        self.assertRaises(ValueError, self.module.StaticTuple, *args_300)
83
83
        # not a string
84
84
        self.assertRaises(TypeError, self.module.StaticTuple, object())
85
85