change assert(Not)Equals to assert(Not)Equal

According to http://docs.python.org/2/library/unittest.html
assert(Not)Equals is a deprecated alias of assert(Not)Equal.

Change-Id: I0973455847410a34e1f9e5fe81ba096186f225d2
Closes-Bug: #1329757
This commit is contained in:
zhangyangyang 2017-09-11 17:33:06 +08:00
parent 487614c913
commit bfa2397176
1 changed files with 3 additions and 3 deletions

View File

@ -57,13 +57,13 @@ An example may look like the following:
time.sleep(2) # wait for all participants discover each other time.sleep(2) # wait for all participants discover each other
assertEquals(server.clientsList, assertEqual(server.clientsList,
bobMessenger.clientsList, bobMessenger.clientsList,
aliceMessenger.clientsList) aliceMessenger.clientsList)
bobMessenger.sendMessage('Alice', 'Hi, there!') bobMessenger.sendMessage('Alice', 'Hi, there!')
assertEquals(bobMessenger.history['Alice'], assertEqual(bobMessenger.history['Alice'],
aliceMessenger.history['Bob']) aliceMessenger.history['Bob'])
@ -77,7 +77,7 @@ Or for the request-reply pattern:
fibServer.run() fibServer.run()
value = fibClient.getFibonacci(20) value = fibClient.getFibonacci(20)
assertEquals(value, 6765) assertEqual(value, 6765)
Alternatives Alternatives