tests: fix duplicated entries in TestVMsCollection

Deduplicate entries when iterating over TestVMsCollection values. Some
tests add given VM multiple times, to have it available under different
kind of keys (name, uuid etc) - similar to the real VMsCollection.
This commit is contained in:
Marek Marczykowski-Górecki 2020-08-12 02:01:31 +02:00
parent 24e0ddd7ab
commit ed5b908371
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -56,7 +56,7 @@ class TestVMsCollection(dict):
self.clear()
def __iter__(self):
return iter(self.values())
return iter(set(self.values()))
class TestVolume(object):
def __init__(self, pool):