@pytest.mark.cmd
def test_pootle_init_db_sqlite(capfd, tmpdir):
 test_conf_file = tmpdir.join('pootle.conf')
 call(['pootle', 'init', '--db=sqlite', ('--config=%s' % test_conf_file)])
 (out, err) = capfd.readouterr()
 assert ('Configuration file created' in out)

@ pytest . mark . cmd def test_pootle_init_db_sqlite ( capfd , tmpdir ) : test_conf_file = tmpdir . join ( 'pootle.conf' ) call ( [ 'pootle' , 'init' , '--db=sqlite' , ( '--config=%s' % test_conf_file ) ] ) ( out , err ) = capfd . readouterr ( ) assert ( 'Configuration file created' in out )
pootle init --help .