refactor code snippet for failing test into unittest
compare resource_id in Event.__eq__()