#NEWLINE# def test_checks_for_dups( self ) : #NEWLINE# #INDENT# flo = gf . Flow ( 'test' ) . add ( test_utils . DummyTask ( name = 'a' ) , test_utils . DummyTask ( name = 'a' ) ) #NEWLINE# e = engines . load ( flo ) #NEWLINE# self . assertRaisesRegexp ( exc . Duplicate , '^Atoms with duplicate names' , e . compile )