Skip to content

Commit

Permalink
Docs: using assertEqual instead of list.should.equal (#6707)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdongdong authored Aug 21, 2023
1 parent d8a51ae commit 8535e93
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/docs/server_mode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ See the following example:
in_mem_client = boto3.client("s3")
buckets = in_mem_client.list_buckets()["Buckets"]
[b["Name"] for b in buckets].should.equal(["test"])
self.assertEqual([b["Name"] for b in buckets], ["test"])
This example shows it is possible to create state using the TreadedMotoServer, and access that state using the usual decorators. :raw-html:`<br />`
Note that the decorators will destroy any resources on start, so make sure to not accidentally destroy any resources created by the ThreadedMotoServer that should be kept.

Expand Down

0 comments on commit 8535e93

Please sign in to comment.