#NEWLINE# def test_get_section_lazy2( self ) : #NEWLINE# #INDENT# 'Test getting directly a section of the state lazily\n        ' #NEWLINE# state [ 'a.b' ] = 12 #NEWLINE# self . assertIn ( 'a.b' , state ) #NEWLINE# self . assertEqual ( state [ 'a.b' ] , 12 ) #NEWLINE# with tempfile . NamedTemporaryFile ( ) as temp : #NEWLINE# #INDENT# state . save ( self . name ) #NEWLINE# state . reset_instance ( ) #NEWLINE# state . load ( temp . name ) #NEWLINE# self . assertIn ( 'a.b' , state ) #NEWLINE# self . assertEqual ( state [ 'a.b' ] , 12 )