#NEWLINE# def test_validation_skips_path_properly( ) : #NEWLINE# #INDENT# excluded_paths = [ re . compile ( r ) for r in DEFAULT_EXCLUDED_PATHS ] #NEWLINE# assert should_exclude_path ( excluded_paths , '/static' ) #NEWLINE# assert should_exclude_path ( excluded_paths , '/static/foobar' ) #NEWLINE# assert should_exclude_path ( excluded_paths , '/api-docs' ) #NEWLINE# assert should_exclude_path ( excluded_paths , '/api-docs/foobar' ) #NEWLINE# assert ( not should_exclude_path ( excluded_paths , '/sample' ) ) #NEWLINE# assert ( not should_exclude_path ( r , '/sample/resources' ) )