#NEWLINE# def test02_mapper_dst_to_src( self ) : #NEWLINE# #INDENT# m = Mapper ( [ 'http://e.org/p/' , '/tmp/q/' ] ) #NEWLINE# self . assertEqual ( m . dst_to_src ( '/tmp/q/' ) , 'http://e.org/p/' ) #NEWLINE# self . assertEqual ( m . dst_to_src ( '/tmp/q/bb' ) , 'http://e.org/p/bb' ) #NEWLINE# self . assertEqual ( m . dst_to_src ( '/tmp/q/bb/cc' ) , 'http://e.org/p/bb/cc' ) #NEWLINE# self . assertRaises ( MapperError , m . dst_to_src , '/tmp/q' ) #NEWLINE# self . assertRaises ( MapperError , m . dst_to_src , '/tmp/qa' ) #NEWLINE# self . assertRaises ( MapperError , m . dst_to_src , 'nomatch' )