|
|
@@ -70,7 +70,7 @@ def check_find(test, service, obj):
|
|
|
len(find_objs) == 1,
|
|
|
"Find objects for %s does not return the expected object: %s. Got %s"
|
|
|
% (type(obj).__name__, obj.name, find_objs))
|
|
|
- test.assertEqual(find_objs[0], obj)
|
|
|
+ test.assertEqual(find_objs[0].id, obj.id)
|
|
|
return find_objs
|
|
|
|
|
|
|
|
|
@@ -85,7 +85,7 @@ def check_find_non_existent(test, service):
|
|
|
|
|
|
def check_get(test, service, obj):
|
|
|
get_obj = service.get(obj.id)
|
|
|
- test.assertEqual(get_obj, obj)
|
|
|
+ test.assertEqual(get_obj.id, obj.id)
|
|
|
test.assertIsInstance(get_obj, type(obj))
|
|
|
return get_obj
|
|
|
|