@@ -50,13 +50,13 @@ def test_02_create_notebook_and_section(self):
5050 notebook_name = create_unique_name ("SDK Test Notebook" )
5151 notebook = self .client .me .onenote .notebooks .add (notebook_name ).execute_query ()
5252 self .assertIsNotNone (notebook .resource_path )
53- self .assertEqual (notebook .get_property ( "displayName" ) , notebook_name )
53+ self .assertEqual (notebook .display_name , notebook_name )
5454 TestSection .target_notebook = notebook
5555
5656 section_name = create_unique_name ("SDK Test Section" )
5757 section = notebook .sections .add (displayName = section_name ).execute_query ()
5858 self .assertIsNotNone (section .resource_path )
59- self .assertEqual (section .get_property ( "displayName" ) , section_name )
59+ self .assertEqual (section .display_name , section_name )
6060 TestSection .target_section = section
6161
6262 @requires_delegated (
@@ -72,7 +72,7 @@ def test_03_update_section_name(self):
7272
7373 new_name = create_unique_name ("SDK Updated Section" )
7474 section .set_property ("displayName" , new_name ).update ().execute_query ()
75- self .assertEqual (section .get_property ( "displayName" ) , new_name )
75+ self .assertEqual (section .display_name , new_name )
7676
7777 @requires_delegated (
7878 "Notes.Read" ,
@@ -87,9 +87,9 @@ def test_04_section_has_expected_properties(self):
8787 if not section :
8888 self .skipTest ("No section created from previous test" )
8989
90- self .assertIsNotNone (section .get_property ( "displayName" ) )
91- self .assertIsNotNone (section .get_property ( "createdDateTime" ) )
92- self .assertIsNotNone (section .get_property ( "isDefault" ) )
90+ self .assertIsNotNone (section .display_name )
91+ self .assertIsNotNone (section .created_datetime )
92+ self .assertIsNotNone (section .is_default )
9393
9494 @requires_delegated (
9595 "Notes.Read" ,
0 commit comments