#NEWLINE# def test_spaces_in_names( ) : #NEWLINE# #INDENT# 'Test that spaces in filenames are errors.' #NEWLINE# package = MockXPI ( { #NEWLINE# #INDENT# 'foo/bar/foo.bar ' : None , #NEWLINE# 'foo/bar/ foo.bar' : None , #NEWLINE# #UNINDENT# } ) #NEWLINE# err = ErrorBundle ( ) #NEWLINE# packagelayout . test_blacklisted_files ( err , package ) #NEWLINE# assert err . failed ( ) #NEWLINE# assert ( len ( err . errors ) == 2 )