'This is a very hacky way to test if there is language argument got passed to get_topic_nodes() when playlist_progress_detail is requested.'

@patch('kalite.coachreports.models.get_topic_nodes')
def test_playlist_progress_detail_language(self, mocked_get_topic_nodes):

    base_url = self.reverse('api_dispatch_list', kwargs={'resource_name': 'playlist_progress_detail'})
    url = ((base_url + '?') + urllib.urlencode({'user_id': self.student.id, 'playlist_id': self.topic1.id}))
    try:
        resp = self.client.get(url)
    except:
        pass
    actual_len = str(mocked_get_topic_nodes.call_args[1]['language'])
    assert actual_len
