コード例 #1
0
ファイル: shorewall.py プロジェクト: xlqian/fabtools
def stopped():
    """
    Ensure that the firewall is stopped.
    """
    if not is_stopped():
        stop('shorewall')
コード例 #2
0
def test_require_firewall_stopped(firewall):
    from fabtools.require.shorewall import stopped
    from fabtools.shorewall import is_stopped
    stopped()
    assert is_stopped()
コード例 #3
0
ファイル: shorewall.py プロジェクト: 3quarterstack/fabtools
def stopped():
    """
    Ensure that the firewall is stopped.
    """
    if not is_stopped():
        stop('shorewall')
コード例 #4
0
ファイル: test_shorewall.py プロジェクト: 26lights/fabtools
def test_require_firewall_stopped(firewall):
    from fabtools.require.shorewall import stopped
    from fabtools.shorewall import is_stopped
    stopped()
    assert is_stopped()