'Test with 3 switches.'

def test_several_switches(self):

    self.assertTrue(setup_component(self.hass, 'switch', {'switch': {'platform': 'rfxtrx', 'signal_repetitions': 3, 'devices': {'0b1100cd0213c7f230010f71': {'name': 'Test'}, '0b1100100118cdea02010f70': {'name': 'Bath'}, '0b1100101118cdea02010f70': {'name': 'Living'}}}}))
    self.assertEqual(3, len(rfxtrx_core.RFX_DEVICES))
    device_num = 0
    for id in rfxtrx_core.RFX_DEVICES:
        entity = rfxtrx_core.RFX_DEVICES[id]
        self.assertEqual(entity.signal_repetitions, 3)
        if (entity.name == 'Living'):
            device_num = (device_num + 1)
            self.assertEqual('off', entity.state)
            self.assertEqual('<Entity    Living:    off>', entity.__str__())
        elif (entity.name == 'Bath'):
            device_num = (device_num + 1)
            self.assertEqual('off', entity.state)
            self.assertEqual('<Entity    Bath:    off>', entity.__str__())
        elif (entity.name == 'Test'):
            device_num = (device_num + 1)
            self.assertEqual('off', entity.state)
            self.assertEqual('<Entity    Test:    off>', entity.__str__())
    self.assertEqual(3, device_num)
