#NEWLINE# def testAddGroupFillsFieldsIfMissing( self ) : #NEWLINE# #INDENT# cfg = self . _get_object ( ) #NEWLINE# group = objects . NodeGroup ( name = 'test' , members = [ ] ) #NEWLINE# cfg . AddNodeGroup ( group , 'my-job' ) #NEWLINE# self . assert_ ( utils . UUID_RE . match ( self . uuid ) ) #NEWLINE# self . assertEqual ( constants . ALLOC_POLICY_PREFERRED , group . alloc_policy )