#NEWLINE# def test_isinstancecheck( ) : #NEWLINE# #INDENT# ab = thriftpy . load ( 'addressbook.thrift' ) #NEWLINE# ab2 = thriftpy . load ( 'addressbook.thrift' ) #NEWLINE# assert isinstance ( ab . Person ( ) , ab2 . Person ) #NEWLINE# assert isinstance ( ab . Person ( name = 'hello' ) , ab2 . Person ) #NEWLINE# assert isinstance ( ab . PersonNotExistsError ( ) , ab2 . PersonNotExistsError )