prevent the default argument from being altered
diff --git a/xos/tosca/tests/basetest.py b/xos/tosca/tests/basetest.py
index e90aa8e..f88a63b 100644
--- a/xos/tosca/tests/basetest.py
+++ b/xos/tosca/tests/basetest.py
@@ -68,6 +68,9 @@
return yml
def make_compute(self, slice, name, caps={}, props={}, reqs=[], num_cpus="1", disk_size="10 GB", mem_size="4 MB"):
+ reqs = reqs[:]
+ caps = caps.copy()
+
caps.update( {"host": {"num_cpus": num_cpus, "disk_size": disk_size, "mem_size": mem_size},
"os": {"architecture": "x86_64", "type": "linux", "distribution": "rhel", "version": "6.5"}} )
reqs.append( (slice, "tosca.relationships.MemberOfSlice") )