def test4_expand_groups_to_principals(self):
     owner_group = self.client.web.associated_owner_group.get(
     ).execute_query()
     result = Utility.expand_groups_to_principals(self.client,
                                                  [owner_group.login_name],
                                                  10).execute_query()
     self.assertIsNotNone(result.value)
Beispiel #2
0
 def _root_folder_loaded():
     page_url = self.root_folder.serverRelativeUrl + "/" + page_name
     wiki_props = WikiPageCreationInformation(page_url, page_content)
     Utility.create_wiki_page_in_context_web(self.context, wiki_props,
                                             return_type)
Beispiel #3
0
 def _list_loaded():
     page_url = self.root_folder.serverRelativeUrl + "/" + page_name
     wiki_props = WikiPageCreationInformation(page_url, page_content)
     result.value = Utility.create_wiki_page_in_context_web(
         self.context, wiki_props)
 def test3_send_email(self):
     email_props = EmailProperties("The new cafeteria is open.",
                                   "Meet for lunch?",
                                   [test_user_principal_name])
     Utility.send_email(self.client, email_props)
     self.client.execute_query()
 def test2_get_user_permission_levels(self):
     result = Utility.get_user_permission_levels(self.client)
     self.client.execute_query()
     self.assertIsNotNone(result.value)
 def test1_get_current_user_email_addresses(self):
     result = Utility.get_current_user_email_addresses(self.client)
     self.client.execute_query()
     self.assertIsNotNone(result.value)
Beispiel #7
0
 def _group_loaded():
     from office365.sharepoint.utilities.utility import Utility
     Utility.expand_groups_to_principals(self.context,
                                         [self.login_name], max_count,
                                         return_type)
 def test3_send_email(self):
     email_props = EmailProperties("The new cafeteria is open.",
                                   "Meet for lunch?",
                                   [settings.get('first_account_name')])
     Utility.send_email(self.client, email_props)
     self.client.execute_query()
Beispiel #9
0
 def test5_create_email_body_for_invitation(self):
     result = Utility.create_email_body_for_invitation(self.client, "SitePages/Home.aspx").execute_query()
     self.assertIsNotNone(result.value)