def test_not_added():
    c = Connection(port=P4PORT, client=P4CLIENT, user=P4USER)
    rev = c.ls(NOT_ADDED)
    assert len(rev) == 0

    res = c.canAdd(NOT_ADDED)
    assert res == True
    res = c.canAdd('foo.txt')
    assert res == False
Beispiel #2
0
def test_not_added():
    c = Connection(port=P4PORT, client=P4CLIENT, user=P4USER)
    rev = c.ls(NOT_ADDED)
    assert len(rev) == 0

    res = c.canAdd(NOT_ADDED)
    assert res == True
    res = c.canAdd('foo.txt')
    assert res == False
Beispiel #3
0
def test_not_added():
    c = Connection(port='127.0.0.1:1666',
                   client='p4_unit_tests',
                   user='******')
    rev = c.ls(NOT_ADDED)
    assert len(rev) == 0

    res = c.canAdd(NOT_ADDED)
    assert res == True
    res = c.canAdd('foo.txt')
    assert res == False