def test_platform_config():
    for value in (
        {},
        {'hello': 'world'},
    ):
        with pytest.raises(vol.MultipleInvalid):
            cv.PLATFORM_SCHEMA(value)

    for value in (
        {'platform': 'mqtt'},
        {'platform': 'mqtt', 'beer': 'yes'},
    ):
        cv.PLATFORM_SCHEMA(value)
Return 403 if user is does not have permissions to edit the scribble.
dataset/ETHPy150Open home-assistant/home-assistant/tests/helpers/test_config_validation.py/test_platform_config--crossover with--dataset/ETHPy150Open caktus/django-scribbler/scribbler/tests/test_views.py/EditFieldTestCase.test_permission_required