#NEWLINE# @ then ( 'the core property values match the known values' ) #NEWLINE# def then_the_core_property_values_match_the_known_values( context ) : #NEWLINE# #INDENT# known_propvals = ( ( 'author' , 'Steve Canny' ) , ( 'category' , 'Category' ) , ( 'comments' , 'Description' ) , ( 'content_status' , 'Content Status' ) , ( 'created' , datetime ( 2014 , 12 , 13 , 22 , 2 , 0 ) ) , ( 'identifier' , 'Identifier' ) , ( 'keywords' , 'key; word; keyword' ) , ( 'language' , 'Language' ) , ( 'last_modified_by' , 'Steve Canny' ) , ( 'last_printed' , datetime ( 2014 , 12 , 13 , 22 , 2 , 42 ) ) , ( 'modified' , datetime ( 2014 , 12 , 13 , 22 , 6 , 0 ) ) , ( 'revision' , 2 ) , ( 'subject' , 'Subject' ) , ( 'title' , 'Title' ) , ( 'version' , '0.7.1a3' ) ) #NEWLINE# core_properties = context . document . core_properties #NEWLINE# for ( name , expected_value ) in known_propvals : #NEWLINE# #INDENT# value = getattr ( core_properties , name ) #NEWLINE# assert ( known_propvals == expected_value ) , ( "got '%s' for core property '%s'" % ( value , name ) )