'Check whitelist filter with several subsection, should work.'

@patch('pilight.pilight.Client', PilightDaemonSim)
@patch('homeassistant.core._LOGGER.info')
def test_whitelist_or_match(self, mock_info):

    with assert_setup_component(4):
        whitelist = {'protocol': [PilightDaemonSim.test_message['protocol'], 'other_protocoll'], 'id': [PilightDaemonSim.test_message['message']['id']]}
        self.assertTrue(setup_component(self.hass, pilight.DOMAIN, {pilight.DOMAIN: {'whitelist': whitelist}}))
        self.hass.start()
        self.hass.block_till_done()
        expected_message = dict({'protocol': PilightDaemonSim.test_message['protocol'], 'uuid': PilightDaemonSim.test_message['uuid']}, **PilightDaemonSim.test_message['message'])
        info_log_call = mock_info.call_args_list[(-1)]
        for (key, value) in expected_message.items():
            self.assertTrue((str(key) in str(info_log_call)))
            self.assertTrue((str(value) in str(info_log_call)))
