def test( me): _Case.test( me) if me.verbosity > 0: import viewer fld_names = ['slujitel', 'osn_zaplata', 'otrab_dni', 'dni_za_mes', 'realna_zap'] aligns = dict( slujitel ='l', osn_zaplata ='r', otrab_dni ='r', dni_za_mes ='r', realna_zap ='r') captions = dict(slujitel ='Служител' , osn_zaplata ='Осн.заплата' , otrab_dni ='Отработени дни' , dni_za_mes ='Раб.дни в месеца', realna_zap ='Реална заплата' ) vborders = dict(slujitel = 'lr', osn_zaplata = 'r', otrab_dni = 'r', dni_za_mes = 'r', realna_zap = 'r',) #view = viewer.View( me.spr.rows, fld_names) #view = viewer.Titled( view, captions) view = viewer.Aligned( view, aligns) #view = viewer.VBordered( view, vborders) #view = viewer.HBordered( view, 'ud') print view
def __init__( me, *a,**k): _Case.__init__( me, *a,**k) me.spr = RowClassifier()
def setup( me): for g in me.testSamples: me.spr.group( g.threshold, filter_func=g.filter_func, aggregators=g.aggregators) _Case.setup( me) me.spr.end()
def __init__( me, doc, inputDatabase, testingSamples): Case.__init__( me, doc, inputDatabase, testingSamples) me._testDefaultTime = False me.obj = _Timed2_withDisabled_protocol.EnforcingWrapper( me.factory4Timed2_withDisabled )