Ejemplo n.º 1
0
Archivo: test.py Proyecto: winks/hand
def test_open_file3():
    file_name = './_fix/2/.plan'
    msg = finger.open_file(file_name)
    assert not msg
Ejemplo n.º 2
0
Archivo: test.py Proyecto: winks/hand
def test_open_file2():
    file_name = './_fix/1/notafile'
    msg = finger.open_file(file_name)
    assert not msg
Ejemplo n.º 3
0
Archivo: test.py Proyecto: winks/hand
def test_open_file1():
    file_name = './_fix/1/.plan'
    msg = finger.open_file(file_name)
    assert (msg == file(file_name).read())
Ejemplo n.º 4
0
Archivo: test.py Proyecto: winks/hand
def test_open_file3():
    file_name = './_fix/2/.plan'
    msg = finger.open_file(file_name)
    assert not msg
Ejemplo n.º 5
0
Archivo: test.py Proyecto: winks/hand
def test_open_file2():
    file_name = './_fix/1/notafile'
    msg = finger.open_file(file_name)
    assert not msg
Ejemplo n.º 6
0
Archivo: test.py Proyecto: winks/hand
def test_open_file1():
    file_name = './_fix/1/.plan'
    msg = finger.open_file(file_name)
    assert (msg == file(file_name).read())