예제 #1
0
파일: test.py 프로젝트: winks/hand
def test_check_user2():
    user = finger.check_user('username1', './_fix/1/passwd2')
    assert (user == {})
예제 #2
0
파일: test.py 프로젝트: winks/hand
def test_check_user2():
    user = finger.check_user('username1', './_fix/1/passwd2')
    assert (user == {})
예제 #3
0
파일: test.py 프로젝트: winks/hand
def test_check_user1():
    user = finger.check_user('username1', './_fix/1/passwd1')
    assert (user['name'] == user1['name'])
    assert (user['uid'] == user1['uid'])
    assert (user['gid'] == user1['gid'])
    assert (user['shell'] == user1['shell'])
예제 #4
0
파일: test.py 프로젝트: winks/hand
def test_check_user1():
    user = finger.check_user('username1', './_fix/1/passwd1')
    assert (user['name'] == user1['name'])
    assert (user['uid'] == user1['uid'])
    assert (user['gid'] == user1['gid'])
    assert (user['shell'] == user1['shell'])