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