derwiki-adroll / mock

Automatically exported from code.google.com/p/mock
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

assert_called_with could return the return value for chained assertions #102

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If assert_called_with and assert_called_once_with returned the return value of 
the mock then you could chain calls to them.

Original issue reported on code.google.com by fuzzyman on 13 Jul 2011 at 12:26

GoogleCodeExporter commented 9 years ago

Original comment by fuzzyman on 17 Jul 2011 at 1:09

GoogleCodeExporter commented 9 years ago
`mock_calls` and the `call` object is a better way of asserting chained calls.

Original comment by fuzzyman on 18 Jul 2011 at 12:14