#NEWLINE# def test_create_no_admin( self ) : #NEWLINE# #INDENT# body = { #NEWLINE# #INDENT# 'extra_specs' : { #NEWLINE# #INDENT# 'key1' : 'value1' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# req = self . _get_request ( '1/os-extra_specs' ) #NEWLINE# self . assertRaises ( exception . Forbidden , self . controller . create , body , 1 , body = body )