Exemplo n.º 1
0
def test_main():
    main(['tests/test.txt'])
    assert sys.stdout.getvalue() == 'choose spain \nthis is a test \n'
Exemplo n.º 2
0
def test_main():
    main(['tests/test.txt'])
    assert sys.stdout.getvalue() == 'choose spain \nthis is a test \n'
Exemplo n.º 3
0
def test_main():
    main(['tests/test.txt'])
    import os
    result = os.linesep.join(('choose spain', 'this is a test')) + os.linesep
    assert sys.stdout.getvalue() == result
Exemplo n.º 4
0
def test_main():
    main(['tests/test.txt'])
    result = os.linesep.join(('choose spain', 'this is a test')) + os.linesep
    assert sys.stdout.getvalue() == result