#NEWLINE# def test_list_metadata( self ) : #NEWLINE# #INDENT# self . _add_test_metadata ( ) #NEWLINE# self . view = MetaDataViewSet . as_view ( { #NEWLINE# #INDENT# 'get' : 'list' , #NEWLINE# #UNINDENT# } ) #NEWLINE# request = self . factory . get ( '/' ) #NEWLINE# response = self . view ( request ) #NEWLINE# self . assertEqual ( response . status_code , 401 ) #NEWLINE# request = self . factory . get ( '/' , ** self . extra ) #NEWLINE# response = self . view ( request ) #NEWLINE# self . assertEqual ( response . status_code , 200 )