'Test if there is language argument got passed to get_content_parents() when playlist_progress is requested.'

@patch('kalite.coachreports.models.get_content_parents')
def test_playlist_progress_language(self, mocked_get_content_parents):

    base_url = self.reverse('api_dispatch_list', kwargs={'resource_name': 'playlist_progress'})
    url = ((base_url + '?') + urllib.urlencode({'user_id': self.student.id}))
    resp = self.client.get(url)
    actual_len = str(mocked_get_content_parents.call_args[1]['language'])
    assert actual_len
