#NEWLINE# def test_duplicate( self ) : #NEWLINE# #INDENT# '\n        L{_loadExamples} raises L{Exception} if an id is used by more than one\n        example.\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 ( [ self , foo , bar ] ) ) #NEWLINE# self . assertRaises ( Exception , _loadExamples , path )