Made all unittests validate again.
This commit is contained in:
parent
2973b096e7
commit
2c47d6a66b
2 changed files with 3 additions and 3 deletions
|
|
@ -199,7 +199,7 @@ class CmdCopy(ObjManipCommand):
|
||||||
if not to_obj_location:
|
if not to_obj_location:
|
||||||
return
|
return
|
||||||
|
|
||||||
copiedobj = ObjectDB.objects.copy_object(from_obj, new_name=to_obj_name,
|
copiedobj = ObjectDB.objects.copy_object(from_obj, new_key=to_obj_name,
|
||||||
new_location=to_obj_location, new_aliases=to_obj_aliases)
|
new_location=to_obj_location, new_aliases=to_obj_aliases)
|
||||||
if copiedobj:
|
if copiedobj:
|
||||||
string = "Copied %s to '%s' (aliases: %s)." % (from_obj_name, to_obj_name,
|
string = "Copied %s to '%s' (aliases: %s)." % (from_obj_name, to_obj_name,
|
||||||
|
|
@ -535,7 +535,7 @@ class CmdDestroy(MuxCommand):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
key = "@destroy"
|
key = "@destroy"
|
||||||
aliases = "@delete"
|
aliases = ["@delete", "@del"]
|
||||||
locks = "cmd:perm(destroy) or perm(Builders)"
|
locks = "cmd:perm(destroy) or perm(Builders)"
|
||||||
help_category = "Building"
|
help_category = "Building"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -328,7 +328,7 @@ class TestDesc(BuildTest):
|
||||||
self.assertEqual(self.obj1.db.desc, u"Test object")
|
self.assertEqual(self.obj1.db.desc, u"Test object")
|
||||||
class TestDestroy(BuildTest):
|
class TestDestroy(BuildTest):
|
||||||
def test_call(self):
|
def test_call(self):
|
||||||
self.execute_cmd("@destroy obj1, obj2", "obj1 was deleted.\nobj2 was deleted")
|
self.execute_cmd("@destroy obj1, obj2", "obj1 was destroyed.\nobj2 was destroyed.")
|
||||||
class TestFind(BuildTest):
|
class TestFind(BuildTest):
|
||||||
def test_call(self):
|
def test_call(self):
|
||||||
self.execute_cmd("@find obj1", "One Match")
|
self.execute_cmd("@find obj1", "One Match")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue