'Test clear playlist.'

def test_clear_playlist(self):

    assert setup_component(self.hass, mp.DOMAIN, {'media_player': {'platform': 'demo'}})
    assert self.hass.states.is_state(entity_id, 'playing')
    mp.clear_playlist(self.hass, entity_id)
    self.hass.block_till_done()
    assert self.hass.states.is_state(entity_id, 'off')
