Browse Source

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
changes/33/502433/1
zhangyangyang 2 years ago
parent
commit
bfa2397176
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      specs/liberty/oslo-examples.rst

+ 3
- 3
specs/liberty/oslo-examples.rst View File

@@ -57,13 +57,13 @@ An example may look like the following:

time.sleep(2) # wait for all participants discover each other

assertEquals(server.clientsList,
assertEqual(server.clientsList,
bobMessenger.clientsList,
aliceMessenger.clientsList)

bobMessenger.sendMessage('Alice', 'Hi, there!')

assertEquals(bobMessenger.history['Alice'],
assertEqual(bobMessenger.history['Alice'],
aliceMessenger.history['Bob'])


@@ -77,7 +77,7 @@ Or for the request-reply pattern:
fibServer.run()

value = fibClient.getFibonacci(20)
assertEquals(value, 6765)
assertEqual(value, 6765)


Alternatives

Loading…
Cancel
Save