#NEWLINE# def test_create( self ) : #NEWLINE# #INDENT# name = 'securitygroup1' #NEWLINE# is_default = True #NEWLINE# rules = [ { #NEWLINE# #INDENT# 'protocol' : 'tcp' , #NEWLINE# 'port_range_max' : '80' , #NEWLINE# 'port_range_min' : '80' , #NEWLINE# 'remote_ip_prefix' : '0.0.0.0/0' , #NEWLINE# #UNINDENT# } ] #NEWLINE# securitygroup = self . cs . securitygroups . create ( self . gid , name , is_default , rules ) #NEWLINE# body = self . _create_body ( name , is_default , rules ) #NEWLINE# self . cs . assert_called ( 'POST' , ( '/groups/%s/securitygroups' % self . gid ) , body ) #NEWLINE# self . assertIsInstance ( securitygroup , self . securitygroup_type )