-í Û„?csydZdkZdkZdkZdklZdklZdefd„ƒYZYd„Z dS(sqTest that the monitor produce sensible results. $Id: testMonitor.py,v 1.6.6.1 2003/09/15 21:26:54 tim_one Exp $ N(sCommonSetupTearDown(s StorageStatss MonitorTestscsDtZdZd„Z+d„ZJd„ZMd„ZRS(Nics§tititiƒ} |iddfƒ!g}"xC"do8#|idƒ}$|o%|i|ƒn'PqCW(|i ƒ)di |ƒSdS(Ns localhosti¤ii s( ssocketsAF_INETs SOCK_STREAMsssconnectsLsrecvsbufsappendsclosesjoin(sselfsbufsssL((s=/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testMonitor.pysget_monitor_outputs     c s{+-|idƒ}.|i|didƒƒ3g} 4t}5xƒ|dD5]t} 6| idƒo7| g}nL8| o9|i | ƒn.;|tj o<| i |ƒ=t}nqRW>t o|tjpt ‚@h}Axv| DA]k}B|d} C| idƒ\}}Dt|ƒ}Etƒ}||<F|idi|dƒƒqþWH|SdS(Ns isZEO monitor serverisStorage:s:i(ssssplitslinessselfsassert_s startswithssectionssNonescurslinesappends __debug__sAssertionErrorsdssectshdrskeysvaluesintsstorages StorageStatssparsesjoin( sselfssscursstorageslinessvaluesdssectskeyslinessectionsshdr((s=/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testMonitor.pysparse+s.       !csJKdSdS(Ns((sselfspathscreates read_only((s=/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testMonitor.pys getConfigJscs¢MP|iƒ|_Q|iƒ}R|iiƒS|i|idƒdjƒT|i|ƒ}U|d}V|i |i dƒW|i |i dƒdS(Nsmonitoriÿÿÿÿii(sselfsopenClientStoragesstoragesget_monitor_outputsssclosesassert_sfindsparsesdsstatss assertEqualsclientsscommits(sselfsstatssssd((s=/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testMonitor.pys testMonitorMs (s__name__s __module__smonitorsget_monitor_outputsparses getConfigs testMonitor(((s=/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testMonitor.pys MonitorTestss    csYZtitƒSdS(N(sunittests makeSuites MonitorTests(((s=/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testMonitor.pys test_suiteYs( s__doc__ssocketstimesunittestsZEO.tests.ConnectionTestssCommonSetupTearDowns ZEO.monitors StorageStatss MonitorTestss test_suite(s MonitorTestss test_suitessocketstimesunittests StorageStatssCommonSetupTearDown((s=/usr/pkg/lib/python2.2/site-packages/ZEO/tests/testMonitor.pys?s    ?