Remove test for mutable default parameter values
authorJose A. Lopes <jabolopes@google.com>
Fri, 2 Aug 2013 12:50:24 +0000 (14:50 +0200)
committerJose A. Lopes <jabolopes@google.com>
Wed, 7 Aug 2013 07:43:28 +0000 (09:43 +0200)
commit6888a6ede635087e443c5d3e9d980c45f791f259
tree85b971fe6195948af04accf19f53b53a99c07d93
parent3eba270aeb5c7e54adedfc3af05ae58bb3d4ef21
Remove test for mutable default parameter values

Opcode parameters contain default values which can be, for example, a
list, dict, or set. Because these values are mutable, 'Validate'
performs a deepcopy before constructing the opcode dict and,
therefore, changing these values will not affect the default value
stored in the opcode description. As a result, the default value can
be reused in several calls to 'Validate' without a problem. The test
to ensure immutable default values can thus be removed.

Signed-off-by: Jose A. Lopes <jabolopes@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
test/py/ganeti.opcodes_unittest.py