def METHOD_NAME(self):
    o = FileComment.objects.add_by_file_path(repo_id=self.repo.id,
                                             file_path=self.file,
                                             author=self.tmp_user.username,
                                             comment='test comment')
    resp = self.client.get(self.endpoint + '&avatar_size=20')
    self.assertEqual(200, resp.status_code)
    json_resp = json.loads(resp.content)
    assert len(json_resp['comments']) == 1
    assert json_resp['comments'][0]['comment'] == o.comment
    assert json_resp['comments'][0]['user_email'] == self.tmp_user.email
    assert 'avatars' in json_resp['comments'][0]['avatar_url']
    assert json_resp['total_count'] == 1