Ejemplo n.º 1
0
def test_rsync_copy():
    p = merge.props_for('merge/tests/data/A/1')
    p2 = merge.props_for('merge/tests/data/B/1')

    assert p[:3] == p2[:3]
    # Rsync does not always copy the full timestamp, but it should copy the
    # integer version:
    assert int(p[3]) == int(p2[3])
Ejemplo n.º 2
0
def test_rsync_copy():
    p = merge.props_for('merge/tests/data/A/1')
    p2 = merge.props_for('merge/tests/data/B/1')

    assert p[:3] == p2[:3]
    # Rsync does not always copy the full timestamp, but it should copy the
    # integer version:
    assert int(p[3]) == int(p2[3])
Ejemplo n.º 3
0
def test_props_for():
    p = merge.props_for('merge/tests/data/A/3')
    p2 = merge.props_for('merge/tests/data/A/3')
    assert p == p2
    p2 = merge.props_for('merge/tests/data/B/3')
    assert p != p2
Ejemplo n.º 4
0
def test_props_for():
    p = merge.props_for('merge/tests/data/A/3')
    p2 = merge.props_for('merge/tests/data/A/3')
    assert p == p2
    p2 = merge.props_for('merge/tests/data/B/3')
    assert p != p2