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)

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 )
test platform config validation .