Commit 7a8cbed0 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Replace simple no-call check to equality check.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1406 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent c6de3efd
...@@ -363,10 +363,9 @@ class ClientHandlerTests(NeoTestBase): ...@@ -363,10 +363,9 @@ class ClientHandlerTests(NeoTestBase):
add_call_list = app.nm.mockGetNamedCalls('add') add_call_list = app.nm.mockGetNamedCalls('add')
self.assertEqual(len(add_call_list), 0) self.assertEqual(len(add_call_list), 0)
# Check that node UUID was untouched # Check that node UUID was untouched
# XXX: should we just check that there was either no call or a call setUUIDCalls = node.mockGetNamedCalls('setUUID')
# with same uuid, or enforce no call ? Here we enforce no call just if len(setUUIDCalls) == 1:
# because it's what implementation does. self.assertEquals(setUUIDCalls[0].getParam(0), test_node_uuid)
self.checkNoUUIDSet(node)
# Check that primary master was not updated (it is not known yet, # Check that primary master was not updated (it is not known yet,
# hence INVALID_UUID in call). # hence INVALID_UUID in call).
self.assertEquals(app.primary_master_node, None) self.assertEquals(app.primary_master_node, None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment