示例#1
0
def assert_svstat(service, **attrs):
    from testfixtures import Comparison as C
    from pgctl.daemontools import svstat, SvStat
    assert svstat(service) == C(SvStat, attrs, strict=False)
示例#2
0
 def it_becomes_unready():
     from testfixtures import Comparison as C
     from pgctl.daemontools import svstat
     assert svstat('playground/slow-startup') != C(SvStat, {'state': 'ready'}, strict=False)
示例#3
0
 def it_becomes_unready():
     from testfixtures import Comparison as C
     from pgctl.daemontools import svstat
     assert svstat('playground/slow-startup') != C(
         SvStat, {'state': 'ready'}, strict=False)