#NEWLINE# def test_model_choice_preference( self ) : #NEWLINE# #INDENT# global_preferences = global_preferences_registry . manager ( ) #NEWLINE# global_preferences [ 'blog__featured_entry' ] = self . blog_entry #NEWLINE# in_db = GlobalPreferenceModel . objects . get ( section = 'blog' , name = 'featured_entry' ) #NEWLINE# self . assertEqual ( in_db . value , self . blog_entry ) #NEWLINE# self . assertEqual ( in_db . raw_value , str ( self . blog_entry . pk ) )