'Test light profiles.'

def test_broken_light_profiles(self):

    platform = loader.get_component('light.test')
    platform.init()
    user_light_file = self.hass.config.path(light.LIGHT_PROFILES_FILE)
    with open(user_light_file, 'w') as user_file:
        user_file.write('id,x,y,brightness\n')
        user_file.write('I,WILL,NOT,WORK\n')
    self.assertFalse(setup_component(self.hass, light.DOMAIN, {light.DOMAIN: {CONF_PLATFORM: 'test'}}))
