Updating to make unittests work

This commit is contained in:
Griatch 2014-05-11 19:41:37 +02:00
parent f3af089aac
commit cfd2f111f1
3 changed files with 12 additions and 3 deletions

View file

@ -325,7 +325,7 @@ class CmdCpAttr(ObjManipCommand):
to_obj.attributes.add(to_attr, srcvalue)
if ("move" in self.switches and not (from_obj == to_obj and
from_attr == to_attr)):
from_obj.del_attribute(from_attr)
from_obj.attributes.remove(from_attr)
string += "\nMoved %s.%s -> %s.%s." % (from_obj.name,
from_attr,
to_obj_name, to_attr)