def _assert_crumble_called_for(self, crumbler, items, any_order=False, attrs=None):
        crumbler.crumble.assert_has_calls([mock.call(item, attrs)
                                           for item in items], any_order=any_order)
        assert crumbler.crumble.call_count == len(items)
Asserts that crumbler.crumble() was called on exactly the given list of items, and no others.
dataset/ETHPy150Open dropbox/changes/tests/changes/api/serializer/test_base.py/SerializeTest._assert_crumble_called_for