#NEWLINE# def assert_delayed( self , obj , num ) : #NEWLINE# #INDENT# '\n        Instances with deferred fields look the same as normal instances when\n        we examine attribute values. Therefore, this method returns the number\n        of deferred fields on returned instances.\n        ' #NEWLINE# count = 0 #NEWLINE# for field in obj . _meta . fields : #NEWLINE# #INDENT# if isinstance ( obj . __class__ . __dict__ . get ( field . attname ) , DeferredAttribute ) : #NEWLINE# #INDENT# count += 1 #NEWLINE# #UNINDENT# #UNINDENT# self . assertEqual ( count , num )