def check_untested(funcdict, c_cls, p_cls):
 c_attr = set(dir(c_cls))
 p_attr = set(dir(p_cls))
 intersect = (c_attr & p_attr)
 funcdict['c_only'] = tuple(sorted((c_attr - intersect)))
 funcdict['p_only'] = tuple(sorted((p_attr - intersect)))
 tested = set()
 for lst in funcdict.values():
  for v in lst:
   v = (v.replace('context.', '') if (c_cls == C.Context) else v)
   tested.add(v)
 funcdict['untested'] = tuple(sorted((intersect - tested)))

def check_untested ( funcdict , c_cls , p_cls ) : c_attr = set ( dir ( c_cls ) ) p_attr = set ( dir ( p_cls ) ) intersect = ( c_attr & p_attr ) funcdict [ 'c_only' ] = tuple ( sorted ( ( c_attr - intersect ) ) ) funcdict [ 'p_only' ] = tuple ( sorted ( ( p_attr - intersect ) ) ) tested = set ( ) for lst in funcdict . values ( ) : for v in lst : v = ( v . replace ( 'context.' , '' ) if ( c_cls == C . Context ) else v ) tested . add ( v ) funcdict [ 'untested' ] = tuple ( sorted ( ( intersect - tested ) ) )
determine untested .