def test_declined_event_aliased_attendee(PatchedGCalI):
    """Should detect declined events if attendee has self=True (#620)."""
    gcal = PatchedGCalI()
    event = {
        'gcalcli_cal': {
            'id': 'user@email.com',
        },
        'attendees': [
            {
                'email': 'user@otherdomain.com',
                'self': True,
                'responseStatus': 'declined',
            },
        ]
    }
    assert gcal._DeclinedEvent(event), \
        "Must detect declined 'self' events regardless of email"
Should detect declined events if attendee has self=True (#620).
tests/test_gcalcli.py