Make QmpMessage a proper container
authorMichele Tartara <mtartara@google.com>
Tue, 24 Sep 2013 13:26:54 +0000 (13:26 +0000)
committerMichele Tartara <mtartara@google.com>
Wed, 25 Sep 2013 07:51:53 +0000 (09:51 +0200)
commit5e34123ec95d1e80c058fb9979d19dc663f03ecb
treeb75303be5d4571e517ab87a8959d2013219a77c5
parenta9688b61f817abd154745cccae0ab8d1923ab85b
Make QmpMessage a proper container

Newer pylint versions complain that QmpMessage is not a proper container because
it does not implement the __len__() and __delitem__() methods. This commit
implements them.

Also, tests are added.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Helga Velroyen <helgav@google.com>
lib/hypervisor/hv_kvm.py
test/py/ganeti.hypervisor.hv_kvm_unittest.py