def test_remove_events(events_example): r = orm.DBResource(id='e1', name='e1', base_path='x') r.save() to_be_removed = events_example[2] evapi.add_events('e1', events_example) evapi.remove_event(to_be_removed) assert to_be_removed not in evapi.all_events('e1')
def test_remove_events(events_example): r = Resource.from_dict(dict(key='e1', name='e1', base_path='x')) r.save() to_be_removed = events_example[2] evapi.add_events('e1', events_example) evapi.remove_event(to_be_removed) assert to_be_removed not in evapi.all_events('e1')
def rem(etype, parent_node, parent_action, state, depend_node, depend_action): ev = evapi.create_event(locals()) evapi.remove_event(ev)