def _update_engines(self, engines):
        for k,v in engines.items():
            eid = int(k)
            self._engines[eid] = v
            self._ids.append(eid)
        self._ids = sorted(self._ids)
        if sorted(self._engines.keys()) != list(range(len(self._engines))) and \
                        self._task_scheme == 'pure' and self._task_socket:
            self._stop_scheduling_tasks()
Test that the events manager can find events that owe money
dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/client/client.py/Client._update_engines--crossover with--dataset/ETHPy150Open swcarpentry/amy/workshops/test/test_event.py/TestEvent.test_get_uninvoiced_events