Python: inspect interleaved unittest.mock calls with attached mocks
Adam Johnson
When you use a unittest.mock mock, you often make assertions on the calls it received, such as through the mock_calls list. But sometimes you want to assert on the order of calls across multiple mocked functions, for example to check that steps in a process happen in the right sequence. To do...