コード例 #1
0
def test_snapshots_to_send_error(pair, err_msg):
    local, remote = pair
    with pytest.raises(AssertionError) as err:
        snapshots_to_send(local, remote)
    assert err_msg == err.value.message
コード例 #2
0
ファイル: test_ssh_sync.py プロジェクト: PressLabs/z3
def test_snapshots_to_send_error(pair, err_msg):
    local, remote = pair
    with pytest.raises(AssertionError) as err:
        snapshots_to_send(local, remote)
    assert err_msg == err.value.message
コード例 #3
0
def test_snapshots_to_send(pair, expected):
    local, remote = pair
    assert snapshots_to_send(local, remote) == expected
コード例 #4
0
ファイル: test_ssh_sync.py プロジェクト: PressLabs/z3
def test_snapshots_to_send(pair, expected):
    local, remote = pair
    assert snapshots_to_send(local, remote) == expected