<s> from __future__ import print_function <EOL> import re <EOL> from . helpers import render <EOL> def test_output ( capsys , dst ) : <EOL> render ( dst , quiet = False ) <EOL> out , err = capsys . readouterr ( ) <EOL> assert re . search ( r'<STR_LIT>' , out ) <EOL> assert re . search ( r'<STR_LIT>' , out ) <EOL> assert re . search ( r'<STR_LIT>' , out ) <EOL> def test_output_pretend ( capsys , dst ) : <EOL> render ( dst , quiet = False , pretend = True ) <EOL> out , err = capsys . readouterr ( ) <EOL> assert re . search ( r'<STR_LIT>' , out ) <EOL> assert re . search ( r'<STR_LIT>' , out ) <EOL> assert re . search ( r'<STR_LIT>' , out ) <EOL> def test_output_force ( capsys , dst ) : <EOL> render ( dst ) <EOL> out , err = capsys . readouterr ( ) <EOL> render ( dst , quiet = False , force = True ) <EOL> out , err = capsys . readouterr ( ) <EOL> print ( out ) <EOL> assert re . search ( r'<STR_LIT>' , out ) <EOL> assert re . search ( r'<STR_LIT>' , out ) <EOL> assert re . search ( r'<STR_LIT>' , out ) <EOL> assert re . search ( r'<STR_LIT>' , out ) <EOL> def test_output_skip ( capsys , dst ) : <EOL> render ( dst ) <EOL> out , err = capsys . readouterr ( ) <EOL> render ( dst , quiet = False , skip = True ) <EOL> out , err = capsys . readouterr ( ) <EOL> print ( out ) <EOL> assert re . search ( r'<STR_LIT>' , out ) <EOL> assert re . search ( r'<STR_LIT>' , out ) <EOL> assert re . search ( r'<STR_LIT>' , out ) <EOL> assert re . search ( r'<STR_LIT>' , out ) <EOL> def test_output_quiet ( capsys , dst ) : <EOL> render ( dst , quiet = True ) <EOL> out , err = capsys . readouterr ( ) <EOL> assert out == u'<STR_LIT>' </s>
