def test_unfollow_with_user_slug(self): """ 带user_slug,返回follower数量 :return: """ time.sleep(1) zhihu = Zhihu() data = zhihu.unfollow(user_slug="xiaoxiaodouzi") self.assertIn('follower_count', data)
def test_unfollow_with_url(self): """ 带url,返回follower数量 :return: """ time.sleep(1) zhihu = Zhihu() data = zhihu.unfollow(profile_url="https://www.zhihu.com/people/gao-yu-dong-41") self.assertIn('follower_count', data)