Pārlūkot izejas kodu

Removed incorrect object identity test

Currently, this line tests object equality. However, this is incorrect
because the object equality test takes into account transient properties
like state, and therefore, this test fails if a state transition occurs.
Instead, this should simply check for identity only, and not equality,
which is done in the subsequent line.
Nuwan Goonasekera 8 gadi atpakaļ
vecāks
revīzija
b1b27c2422
1 mainītis faili ar 0 papildinājumiem un 7 dzēšanām
  1. 0 7
      test/helpers/standard_interface_tests.py

+ 0 - 7
test/helpers/standard_interface_tests.py

@@ -161,13 +161,6 @@ def check_standard_behaviour(test, service, obj):
     obj_get = check_get(test, service, obj)
     check_get_non_existent(test, service)
 
-    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))
-
     test.assertTrue(
         obj.id == objs_list[0].id == objs_iter[0].id ==
         objs_find[0].id == obj_get.id,