<s> import logging <EOL> import os <EOL> import shutil <EOL> import tempfile <EOL> import unittest <EOL> from stackstrap . config import settings <EOL> class StackStrapTestCase ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . log = logging . getLogger ( "<STR_LIT>" % self . __class__ . __name__ ) <EOL> tmp_dir = tempfile . mkdtemp ( ) <EOL> settings . configure ( tmp_dir ) <EOL> self . log . debug ( "<STR_LIT>" % tmp_dir ) <EOL> def tearDown ( self ) : <EOL> try : <EOL> shutil . rmtree ( settings . base_dir ) <EOL> except OSError : <EOL> if os . path . isdir ( settings . base_dir ) : <EOL> raise </s>
