@pytest.mark.cmd
def test_pootle_version(capfd):
 call(['pootle', '--version'])
 (out, err) = capfd.readouterr()
 assert ('Pootle' in err)
 assert ('Django' in err)
 assert ('Translate Toolkit' in err)

@ pytest . mark . cmd def test_pootle_version ( capfd ) : call ( [ 'pootle' , '--version' ] ) ( out , err ) = capfd . readouterr ( ) assert ( 'Pootle' in err ) assert ( 'Django' in err ) assert ( 'Translate Toolkit' in err )
display pootle version info .