# Mocking in python with autospec 2021-04-01 3 min read Mocking and mocks are really useful when writing tests, as they allow isolating the test target from its dependencies, leading to less fragile tests. python unittest mock autospec Read