'Test reproduce_state with group with same domain and data.'

def test_reproduce_group_same_data(self):

    light_calls = mock_service(self.hass, 'light', SERVICE_TURN_ON)
    self.hass.states.set('light.test1', 'off')
    self.hass.states.set('light.test2', 'off')
    state.reproduce_state(self.hass, [ha.State('light.test1', 'on', {'brightness': 95}), ha.State('light.test2', 'on', {'brightness': 95})])
    self.hass.block_till_done()
    self.assertEqual(1, len(light_calls))
    last_call = light_calls[(-1)]
    self.assertEqual('light', last_call.domain)
    self.assertEqual(SERVICE_TURN_ON, last_call.service)
    self.assertEqual(['light.test1', 'light.test2'], last_call.data.get('entity_id'))
    self.assertEqual(95, last_call.data.get('brightness'))
