'Test location in Norway where the sun doesn\'t set in summer.'

def test_norway_in_june(self):

    self.hass.config.latitude = 69.6
    self.hass.config.longitude = 18.8
    june = datetime(2016, 6, 1, tzinfo=dt_util.UTC)
    with patch('homeassistant.helpers.condition.dt_util.utcnow', return_value=june):
        assert setup_component(self.hass, sun.DOMAIN, {sun.DOMAIN: {sun.CONF_ELEVATION: 0}})
    state = self.hass.states.get(sun.ENTITY_ID)
    assert (state is not None)
    assert (dt_util.parse_datetime(state.attributes[sun.STATE_ATTR_NEXT_RISING]) == datetime(2016, 7, 25, 23, 23, 39, tzinfo=dt_util.UTC))
    assert (dt_util.parse_datetime(state.attributes[sun.STATE_ATTR_NEXT_SETTING]) == datetime(2016, 7, 26, 22, 19, 1, tzinfo=dt_util.UTC))
