'Test with bad configuration.'

def test_setup_two_platforms(self):

    test_platform = loader.get_component('switch.test')
    test_platform.init(True)
    loader.set_component('switch.test2', test_platform)
    test_platform.init(False)
    self.assertTrue(setup_component(self.hass, switch.DOMAIN, {switch.DOMAIN: {CONF_PLATFORM: 'test'}, '{}    2'.format(switch.DOMAIN): {CONF_PLATFORM: 'test2'}}))
