|
|
@@ -166,30 +166,29 @@ def check_standard_behaviour(test, service, obj):
|
|
|
test.assertTrue(
|
|
|
obj == objs_list[0] == objs_iter[0] == objs_find[0] == obj_get,
|
|
|
"Objects returned by list: {0}, iter: {1}, find: {2} and get: {3} "
|
|
|
- " are not as expected: {4}" .format(objs_list[0].id, objs_iter[0].id,
|
|
|
- objs_find[0].id, obj_get.id,
|
|
|
- obj.id))
|
|
|
+ " are not as expected: {4}".format(objs_list[0].id, objs_iter[0].id,
|
|
|
+ objs_find[0].id, obj_get.id,
|
|
|
+ obj.id))
|
|
|
|
|
|
test.assertTrue(
|
|
|
obj.id == objs_list[0].id == objs_iter[0].id ==
|
|
|
objs_find[0].id == obj_get.id,
|
|
|
"Object Ids returned by list: {0}, iter: {1}, find: {2} and get: {3} "
|
|
|
- " are not as expected: {4}" .format(objs_list[0].id, objs_iter[0].id,
|
|
|
- objs_find[0].id, obj_get.id,
|
|
|
- obj.id))
|
|
|
+ " are not as expected: {4}".format(objs_list[0].id, objs_iter[0].id,
|
|
|
+ objs_find[0].id, obj_get.id,
|
|
|
+ obj.id))
|
|
|
|
|
|
test.assertTrue(
|
|
|
obj.name == objs_list[0].name == objs_iter[0].name ==
|
|
|
objs_find[0].name == obj_get.name,
|
|
|
"Names returned by list: {0}, iter: {1}, find: {2} and get: {3} "
|
|
|
- " are not as expected: {4}" .format(objs_list[0].id, objs_iter[0].id,
|
|
|
- objs_find[0].id, obj_get.id,
|
|
|
- obj.id))
|
|
|
+ " are not as expected: {4}".format(objs_list[0].id, objs_iter[0].id,
|
|
|
+ objs_find[0].id, obj_get.id,
|
|
|
+ obj.id))
|
|
|
|
|
|
|
|
|
def check_create(test, service, iface, name_prefix,
|
|
|
create_func, cleanup_func):
|
|
|
-
|
|
|
# check create with invalid name
|
|
|
with test.assertRaises(InvalidNameException):
|
|
|
# spaces should raise an exception
|