Пример #1
0
 def test7_start_stop_following(self):
     people_manager = PeopleManager(self.my_client)
     target_user = self.my_client.web.ensure_user(
         test_user_principal_name).execute_query()
     result = people_manager.am_i_following(
         target_user.login_name).execute_query()
     if result.value:
         people_manager.stop_following(
             target_user.login_name).execute_query()
     else:
         people_manager.follow(target_user.login_name)
    def test7_start_stop_following(self):
        people_manager = PeopleManager(self.my_client)
        target_user = self.my_client.web.ensure_user(self.__class__.target_account_name).execute_query()

        result = people_manager.ami_following(target_user.login_name)
        people_manager.execute_query()

        if result.value:
            people_manager.stop_following(target_user.login_name).execute_query()
        else:
            people_manager.follow(target_user.login_name)