Using Moto to mock test AWS services: A DynamoDB Example Mohamed Muhannad Recently, I had to write some tests for functions that called AWS services in Python. I found the 'moto' library which provides mocks for a lot of the AWS services for your tests. This is a basic example of using moto to test DynamoDB operations.