#NEWLINE# def test_duplicate_files( ) : #NEWLINE# #INDENT# 'Test that duplicate files in a package are caught.' #NEWLINE# package = MagicMock ( ) #NEWLINE# package . zf = zf = MagicMock ( ) #NEWLINE# zf . namelist . return_value = [ 'foo.bar' , 'foo.bar' ] #NEWLINE# err = ErrorBundle ( ) #NEWLINE# packagelayout . test_layout_all ( zf , package ) #NEWLINE# assert err . failed ( )