Example #1
0
File: test.py Project: winks/hand
def test_open_file3():
    file_name = './_fix/2/.plan'
    msg = finger.open_file(file_name)
    assert not msg
Example #2
0
File: test.py Project: winks/hand
def test_open_file2():
    file_name = './_fix/1/notafile'
    msg = finger.open_file(file_name)
    assert not msg
Example #3
0
File: test.py Project: winks/hand
def test_open_file1():
    file_name = './_fix/1/.plan'
    msg = finger.open_file(file_name)
    assert (msg == file(file_name).read())
Example #4
0
File: test.py Project: winks/hand
def test_open_file3():
    file_name = './_fix/2/.plan'
    msg = finger.open_file(file_name)
    assert not msg
Example #5
0
File: test.py Project: winks/hand
def test_open_file2():
    file_name = './_fix/1/notafile'
    msg = finger.open_file(file_name)
    assert not msg
Example #6
0
File: test.py Project: winks/hand
def test_open_file1():
    file_name = './_fix/1/.plan'
    msg = finger.open_file(file_name)
    assert (msg == file(file_name).read())