<s> """<STR_LIT>""" <EOL> from pyrseas . testutils import DbMigrateTestCase <EOL> class AutodocTestCase ( DbMigrateTestCase ) : <EOL> @ classmethod <EOL> def tearDownClass ( cls ) : <EOL> cls . remove_tempfiles ( '<STR_LIT>' ) <EOL> cls . remove_tempfiles ( '<STR_LIT>' ) <EOL> def test_autodoc ( self ) : <EOL> self . execute_script ( __file__ , '<STR_LIT>' ) <EOL> srcdump = self . tempfile_path ( '<STR_LIT>' ) <EOL> self . run_pg_dump ( srcdump , True ) <EOL> srcyaml = self . tempfile_path ( '<STR_LIT>' ) <EOL> self . create_yaml ( srcyaml , True ) <EOL> self . create_yaml ( None , True ) <EOL> targsql = self . tempfile_path ( '<STR_LIT>' ) <EOL> self . migrate_target ( None , targsql ) <EOL> targdump = self . tempfile_path ( '<STR_LIT>' ) <EOL> self . run_pg_dump ( targdump ) <EOL> targyaml = self . tempfile_path ( '<STR_LIT>' ) <EOL> self . create_yaml ( targyaml ) <EOL> assert self . lines ( srcdump ) == self . lines ( targdump ) <EOL> assert self . lines ( srcyaml ) == self . lines ( targyaml ) <EOL> self . srcdb . execute_commit ( <EOL> "<STR_LIT>" ) <EOL> srcyaml = self . tempfile_path ( '<STR_LIT>' ) <EOL> self . create_yaml ( srcyaml , True ) <EOL> self . create_yaml ( None , True ) <EOL> targsql = self . tempfile_path ( '<STR_LIT>' ) <EOL> self . migrate_target ( None , targsql ) <EOL> srcdump = self . tempfile_path ( '<STR_LIT>' ) <EOL> self . run_pg_dump ( srcdump , True ) <EOL> targdump = self . tempfile_path ( '<STR_LIT>' ) <EOL> self . run_pg_dump ( targdump ) <EOL> targyaml = self . tempfile_path ( '<STR_LIT>' ) <EOL> self . create_yaml ( targyaml ) <EOL> assert self . lines ( srcdump ) == self . lines ( targdump ) <EOL> assert self . lines ( srcyaml ) == self . lines ( targyaml ) </s>
