#NEWLINE# def test_create_server_group_quota_limit( self ) : #NEWLINE# #INDENT# self . _setup_quotas ( ) #NEWLINE# sgroup = server_group_template ( ) #NEWLINE# policies = [ 'anti-affinity' ] #NEWLINE# sgroup [ 'policies' ] = policies #NEWLINE# for i in range ( CONF . quota_server_groups ) : #NEWLINE# #INDENT# self . controller . create ( self . req , body = { #NEWLINE# #INDENT# 'server_group' : self , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# self . assertRaises ( webob . exc . HTTPForbidden , self . controller . create , self . req , body = { #NEWLINE# #INDENT# 'server_group' : sgroup , #NEWLINE# #UNINDENT# } )