#NEWLINE# def test_merge_anyof( self ) : #NEWLINE# #INDENT# schema_with_anyof = { #NEWLINE# #INDENT# '$schema' : 'http://json-schema.org/draft-04/schema' , #NEWLINE# 'type' : 'object' , #NEWLINE# 'required' : [ 'something' ] , #NEWLINE# 'properties' : { #NEWLINE# #INDENT# 'something' : { #NEWLINE# #INDENT# 'anyOf' : [ { #NEWLINE# #INDENT# 'type' : 'string' , #NEWLINE# #UNINDENT# } , { #NEWLINE# #INDENT# 'type' : 'null' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# merged = merge_schema ( fixtures . REQUIRING_SOME_PROPERTY , schema_with_anyof ) #NEWLINE# self . assertSchemaEqual ( merged , schema_with_anyof )