For some tests it becomes impractical to assert calls by type. The attached
patch provides a TypeMock and a more Pythonic looking is_a function, that can
be used like so;
mock_function(1, 2, 3, {}, set(), (1,2,), [1, 2, 3])
mock_function.assert_called_with(1, 2, 3, is_a(dict), is_a(set), is_a(tuple), is_a(list))
Original issue reported on code.google.com by nat...@getoffmalawn.com on 5 Apr 2013 at 5:42
Original issue reported on code.google.com by
nat...@getoffmalawn.com
on 5 Apr 2013 at 5:42Attachments: