'Test that we can create an event trigger on device.'

@pytest.mark.skip
@patch('homeassistant.components.calendar.google.GoogleCalendarData')
def test_all_day_offset_in_progress_event(self, mock_next_event):

    tomorrow = (dt_util.dt.date.today() + dt_util.dt.timedelta(days=1))
    event_summary = 'Test    All    Day    Event    Offset    In    Progress'
    event = {'summary': '{}    !!-25:0'.format(event_summary), 'start': {'date': tomorrow.isoformat()}, 'end': {'date': (tomorrow + dt_util.dt.timedelta(days=1)).isoformat()}, 'location': 'Test    Cases', 'description': "We're    just    testing    that    all    day    events    get    setup    correctly", 'kind': 'calendar#event', 'created': '2016-06-23T16:37:57.000Z', 'transparency': 'transparent', 'updated': '2016-06-24T01:57:21.045Z', 'reminders': {'useDefault': True}, 'organizer': {'email': 'uvrttabwegnui4gtia3vyqb@import.calendar.google.com', 'displayName': 'Organizer    Name', 'self': True}, 'sequence': 0, 'creator': {'email': 'uvrttabwegnui4gtia3vyqb@import.calendar.google.com', 'displayName': 'Organizer    Name', 'self': True}, 'id': '_c8rinwq863h45qnucyoi43ny8', 'etag': '"2933466882090000"', 'htmlLink': 'https://www.google.com/calendar/event?eid=*******', 'iCalUID': 'cydrevtfuybguinhomj@google.com', 'status': 'confirmed'}
    mock_next_event.return_value.event = event
    device_name = 'Test    All    Day    Offset    In    Progress'
    device_id = 'test_all_day_offset_in_progress'
    cal = calendar.GoogleCalendarEventDevice(self.hass, None, device_id, {'name': device_name})
    self.assertEqual(cal.name, device_name)
    self.assertEqual(cal.state, STATE_OFF)
    self.assertTrue(cal.offset_reached())
    self.assertEqual(cal.device_state_attributes, {'message': event_summary, 'all_day': True, 'offset_reached': True, 'start_time': '{}    06:00:00'.format(event['start']['date']), 'end_time': '{}    06:00:00'.format(event['end']['date']), 'location': event['location'], 'description': event['description']})
