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)
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)
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)