'Test reproduce_state with SERVICE_PLAY_MEDIA.'

def test_reproduce_media_data(self):

    calls = mock_service(self.hass, 'media_player', SERVICE_PLAY_MEDIA)
    self.hass.states.set('media_player.test', 'off')
    media_attributes = {'media_content_type': 'movie', 'media_content_id': 'batman'}
    state.reproduce_state(self.hass, ha.State('media_player.test', 'None', media_attributes))
    self.hass.block_till_done()
    self.assertTrue((len(calls) > 0))
    last_call = calls[(-1)]
    self.assertEqual('media_player', last_call.domain)
    self.assertEqual(SERVICE_PLAY_MEDIA, last_call.service)
    self.assertEqual('movie', last_call.data.get('media_content_type'))
    self.assertEqual('batman', last_call.data.get('media_content_id'))
