#NEWLINE# def test01_mapper_src_to_dst( self ) : #NEWLINE# #INDENT# m = Mapper ( [ 'http://e.org/p/' , '/tmp/q/' ] ) #NEWLINE# self . assertEqual ( m . src_to_dst ( 'http://e.org/p/' ) , '/tmp/q/' ) #NEWLINE# self . assertEqual ( m . src_to_dst ( 'http://e.org/p/aa' ) , '/tmp/q/aa' ) #NEWLINE# self . assertEqual ( m . src_to_dst ( 'http://e.org/p/aa/bb' ) , '/tmp/q/aa/bb' ) #NEWLINE# self . assertEqual ( m . src_to_dst ( 'http://e.org/p/aa/bb/' ) , '/tmp/q/aa/bb/' ) #NEWLINE# self . assertRaises ( MapperError , m . src_to_dst , 'http://e.org/p' ) #NEWLINE# self . assertRaises ( MapperError , m . src_to_dst , 'http://e.org/pa' ) #NEWLINE# self . assertRaises ( MapperError , self . src_to_dst , 'nomatch' )