def test_platform_config():
    'Test platform config validation.'
    options = ({}, {'hello': 'world'})
    for value in options:
        with pytest.raises(vol.MultipleInvalid):
            cv.PLATFORM_SCHEMA(value)
    options = ({'platform': 'mqtt'}, {'platform': 'mqtt', 'beer': 'yes'})
    for value in options:
        cv.PLATFORM_SCHEMA(value)
Test platform config validation.
def test_platform_config():
    
    options = ({}, {'hello': 'world'})
    for value in options:
        with pytest.raises(vol.MultipleInvalid):
            cv.PLATFORM_SCHEMA(value)
    options = ({'platform': 'mqtt'}, {'platform': 'mqtt', 'beer': 'yes'})
    for value in options:
        cv.PLATFORM_SCHEMA(value)