#NEWLINE# def test_loaded( self ) : #NEWLINE# #INDENT# '\n        The examples are loaded into a L{dict} mapping example identifiers to\n        example L{dict}s.\n        ' #NEWLINE# foo = { #NEWLINE# #INDENT# 'id' : 'foo' , #NEWLINE# 'foo_value' : True , #NEWLINE# #UNINDENT# } #NEWLINE# bar = { #NEWLINE# #INDENT# 'id' : 'bar' , #NEWLINE# 'bar_value' : False , #NEWLINE# #UNINDENT# } #NEWLINE# path = FilePath ( self . mktemp ( ) ) #NEWLINE# path . setContent ( safe_dump ( [ foo , bar ] ) ) #NEWLINE# examples = _loadExamples ( path ) #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# foo [ 'id' ] : foo , #NEWLINE# bar [ 'id' ] : bar , #NEWLINE# #UNINDENT# } , examples )