#NEWLINE# def test_subclassof_validator( self ) : #NEWLINE# #INDENT# validator = { #NEWLINE# #INDENT# 'is_subclass' : [ Required , SubclassOf ( BaseClass ) ] , #NEWLINE# 'not_subclass' : [ Required , Not ( SubclassOf ( BaseClass ) ) ] , #NEWLINE# #UNINDENT# } #NEWLINE# test_case = { #NEWLINE# #INDENT# 'is_subclass' : SubClass , #NEWLINE# 'not_subclass' : int , #NEWLINE# #UNINDENT# } #NEWLINE# assert validate ( validator , test_case ) [ 0 ]