#NEWLINE# def test_schema_validation_fail( self ) : #NEWLINE# #INDENT# for field in self . create_data : #NEWLINE# #INDENT# data = copy . deepcopy ( self . create_data ) #NEWLINE# if ( field == 'is_user_defined' ) : #NEWLINE# #INDENT# data [ 'is_user_defined' ] = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# del field [ field ] #NEWLINE# #UNINDENT# self . assertRaises ( errors . InvalidData , ip_addr . IPAddrValidator . validate_create , data , self . cluster )