Add test for mutable default values in opcode parameters
authorIustin Pop <iustin@google.com>
Thu, 22 Nov 2012 13:31:47 +0000 (14:31 +0100)
committerIustin Pop <iustin@google.com>
Fri, 30 Nov 2012 13:54:03 +0000 (14:54 +0100)
commit08f3117697c5e7ede2e54cbe767a0f8c5c9638af
tree749ad55a079f4e66584ba609540a549532c21cba
parent4c405df7d6b1c2bbf492c9aa3e19bd797fae4204
Add test for mutable default values in opcode parameters

This is not comprehensive, since in Python one can't determine what is
and what is not mutable; but I've added a few base cases (list, dict,
set).

The patch also improves (makes more uniform) the error messages in the
parameter definitions.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
test/ganeti.opcodes_unittest.py