#NEWLINE# def _assert_allows( self , response , * expected_methods ) : #NEWLINE# #INDENT# 'Assert allowed HTTP methods reported in the Allow response header' #NEWLINE# response_allows = set ( response [ 'Allow' ] . split ( ', ' ) ) #NEWLINE# self . assertEqual ( set ( ( expected_methods + ( 'OPTIONS' , ) ) ) , response_allows )