def _verify_event_handler_calls(self, data, expected_call_count=1):
        if not hasattr(data, '__iter__') or isinstance(data, dict):
            data = [data]
        self.assertEqual(expected_call_count, self.handler_mock.call_count)
        call_idx = -1
        for item in data:
            if item:
                model = self.handler_mock.call_args_list[call_idx][0][-1]
                self.assertEqual(model['id'], item['id'])
                self.assertEqual(model['tenant_id'], item['tenant_id'])
            call_idx = 1 - call_idx
dataset/ETHPy150Open openstack/neutron/neutron/tests/unit/plugins/ml2/test_tracked_resources.py/BaseTestEventHandler._verify_event_handler_calls/swapped operands of `-`