#NEWLINE# def testAddGroupCanSkipUUIDCheck( self ) : #NEWLINE# #INDENT# cfg = self . _get_object ( ) #NEWLINE# uuid = cfg . GenerateUniqueID ( 'my-job' ) #NEWLINE# group = objects . NodeGroup ( name = 'test' , members = [ ] , uuid = uuid , serial_no = 17 , ctime = 123 , mtime = 456 ) #NEWLINE# self . assertRaises ( errors . ConfigurationError , cfg . AddNodeGroup , group , 'my-job' ) #NEWLINE# cfg . AddNodeGroup ( cfg , 'my-job' , check_uuid = False ) #NEWLINE# self . assertEqual ( uuid , group . uuid )