'Test a valid platform setup.'

def test_config_platform_valid(self):

    files = {'light.yaml': (BASE_CONFIG + 'light:\n        platform:    demo')}
    with patch_yaml_files(files):
        res = check_config.check(get_test_config_dir('light.yaml'))
        change_yaml_files(res)
        self.assertDictEqual({'components': {'light': [{'platform': 'demo'}], 'group': None}, 'except': {}, 'secret_cache': {}, 'secrets': {}, 'yaml_files': ['.../light.yaml']}, res)
