def METHOD_NAME(self):
    self.login_as(self.user)
    # star a file
    data = {'repo_id': self.repo_id, 'path': self.file}
    resp = self.client.post(self.url, data)
    self.assertEqual(200, resp.status_code)
    # star a folder
    data = {'repo_id': self.repo_id, 'path': self.folder_path}
    resp = self.client.post(self.url, data)
    self.assertEqual(200, resp.status_code)
    # get all starred items
    resp = self.client.get(self.url)
    self.assertEqual(200, resp.status_code)
    json_resp = json.loads(resp.content)
    assert len(json_resp['starred_item_list']) == 2