Beispiel #1
0
 def delete(self, user_id_to):
     '''取消关注'''
     user_id = authutil.get_user_id(g.ukey)
     try:
         backend.unfollow_user(user_id, user_id_to)
     except BackendError, ex:
         raise
Beispiel #2
0
 def delete(self,user_id_to):
     '''取消关注'''
     user_id = authutil.get_user_id(g.ukey)
     try:
         backend.unfollow_user(user_id,user_id_to)
     except BackendError,ex:
         raise 
Beispiel #3
0
    def test_unfollow_user(self):
        user1 = backend.add_user('username01','photo_url01','weibo_id01')
        user2 = backend.add_user('username02','photo_url02','weibo_id02')

        ret = backend.follow_user(user1['id'],user2['id'])

        ret = backend.unfollow_user(user1['id'],user2['id'])
        assert ret == True
Beispiel #4
0
    def test_unfollow_user(self):
        user1 = backend.add_user('username01', 'photo_url01', 'weibo_id01')
        user2 = backend.add_user('username02', 'photo_url02', 'weibo_id02')

        ret = backend.follow_user(user1['id'], user2['id'])

        ret = backend.unfollow_user(user1['id'], user2['id'])
        assert ret == True