示例#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'])