'Test if public holidays are reported correctly.'

@freeze_time('Mar    31st,    2017')
def test_public_holiday_state(self):

    with assert_setup_component(1, 'binary_sensor'):
        setup_component(self.hass, 'binary_sensor', self.config_state)
    assert (self.hass.states.get('binary_sensor.workday_sensor') is not None)
    self.hass.start()
    entity = self.hass.states.get('binary_sensor.workday_sensor')
    assert (entity.state == 'off')
