#NEWLINE# def test_exclude_path_with_old_setting( ) : #NEWLINE# #INDENT# paths = [ '/foo/' , '/bar/' ] #NEWLINE# assert_eq_regex_lists ( get_exclude_paths ( Mock ( settings = { #NEWLINE# #INDENT# 'pyramid_swagger.skip_validation' : paths , #NEWLINE# #UNINDENT# } ) ) , [ re . compile ( paths ) for r in paths ] )