<s> """<STR_LIT>""" <EOL> from hyde . generator import Generator <EOL> from hyde . site import Site <EOL> from fswrap import File <EOL> from pyquery import PyQuery <EOL> TEST_SITE = File ( __file__ ) . parent . parent . child_folder ( '<STR_LIT>' ) <EOL> class TestSyntext ( object ) : <EOL> def setUp ( self ) : <EOL> TEST_SITE . make ( ) <EOL> TEST_SITE . parent . child_folder ( <EOL> '<STR_LIT>' ) . copy_contents_to ( TEST_SITE ) <EOL> def tearDown ( self ) : <EOL> TEST_SITE . delete ( ) <EOL> def test_syntext ( self ) : <EOL> text = u"""<STR_LIT>""" <EOL> site = Site ( TEST_SITE ) <EOL> site . config . plugins = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' ] <EOL> syn = File ( site . content . source_folder . child ( '<STR_LIT>' ) ) <EOL> syn . write ( text ) <EOL> gen = Generator ( site ) <EOL> gen . generate_all ( ) <EOL> f = File ( site . config . deploy_root_path . child ( syn . name ) ) <EOL> assert f . exists <EOL> html = f . read_all ( ) <EOL> assert html <EOL> q = PyQuery ( html ) <EOL> assert q ( '<STR_LIT>' ) . length == <NUM_LIT:1> </s>
