<s> """<STR_LIT>""" <EOL> import pytest <EOL> import os <EOL> from util_functions import run_ofSM <EOL> @ pytest . mark . usefixtures ( '<STR_LIT>' ) <EOL> class TestArchive : <EOL> """<STR_LIT>""" <EOL> def test_archive_default ( self , capfd ) : <EOL> out , _ = run_ofSM ( '<STR_LIT>' , capfd = capfd ) <EOL> assert ( '<STR_LIT>' <EOL> in out ) <EOL> def test_archive_skipping ( self , capfd ) : <EOL> out , _ = run_ofSM ( '<STR_LIT>' , capfd = capfd ) <EOL> assert ( '<STR_LIT>' <EOL> in out ) <EOL> out , _ = run_ofSM ( '<STR_LIT>' , capfd = capfd ) <EOL> assert '<STR_LIT>' in out <EOL> def test_archive_named_snapshot ( self , capfd ) : <EOL> out , _ = run_ofSM ( '<STR_LIT>' , capfd = capfd ) <EOL> assert '<STR_LIT>' in out <EOL> out , _ = run_ofSM ( '<STR_LIT>' , capfd = capfd ) <EOL> assert ( '<STR_LIT>' <EOL> not in out ) <EOL> assert '<STR_LIT>' in out <EOL> def test_archive_description ( self , capfd ) : <EOL> out , _ = run_ofSM ( '<STR_LIT>' , <EOL> capfd = capfd ) <EOL> assert '<STR_LIT>' in out <EOL> out , _ = run_ofSM ( '<STR_LIT>' , capfd = capfd ) <EOL> assert '<STR_LIT>' in out <EOL> with open ( os . path . join ( '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' ) , <EOL> '<STR_LIT:r>' ) as descr : <EOL> assert descr . readline ( ) == "<STR_LIT>" <EOL> def test_archive_directory_exists ( self , capfd ) : <EOL> out , _ = run_ofSM ( '<STR_LIT>' , capfd = capfd ) <EOL> assert ( '<STR_LIT>' <EOL> in out ) <EOL> out , _ = run_ofSM ( '<STR_LIT>' , capfd = capfd ) <EOL> assert ( '<STR_LIT>' <EOL> in out ) </s>
