#NEWLINE# def test_file_materialize_path( self ) : #NEWLINE# #INDENT# w = DummyFileWriter ( Index ( ) ) #NEWLINE# self . assertEqual ( w . _made_dirs , [ 'build' ] ) #NEWLINE# test_values = [ ( '/' , [ 'build' ] , [ 'build/index.html' ] ) , ( '/foo' , [ 'build/foo' ] , [ 'build/foo/index.html' ] ) , ( '/bar.html' , [ 'build' ] , [ 'build/bar.html' ] ) , ( '/bar.html/' , [ 'build/bar.html/' ] , [ 'build/bar.html/index.html' ] ) , ( '/bar.someunknownext' , [ 'build' ] , [ 'build/bar.someunknownext' ] ) ] #NEWLINE# for ( url , made_dirs , written_files ) in test_values : #NEWLINE# #INDENT# w . reset ( ) #NEWLINE# w . materialize_url ( url , '' ) #NEWLINE# self . assertEqual ( w . _made_dirs , made_dirs ) #NEWLINE# self . assertEqual ( w . _written_files , url )