<s> import unittest <EOL> import shutil <EOL> import os <EOL> from angular_scaffold . management . commands . helpers . _generate_assets import generate_assets <EOL> from angular_scaffold . management . commands . helpers . _generate_service import generate_service <EOL> class StartServiceTest ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . BASE_DIR = os . path . dirname ( __file__ ) <EOL> if os . path . exists ( os . path . join ( self . BASE_DIR , '<STR_LIT>' ) ) : <EOL> shutil . rmtree ( os . path . join ( self . BASE_DIR , '<STR_LIT>' ) ) <EOL> generate_assets ( self . BASE_DIR , '<STR_LIT>' ) <EOL> def test_view ( self ) : <EOL> generate_service ( self . BASE_DIR , '<STR_LIT:test>' , '<STR_LIT:/>' , '<STR_LIT>' ) <EOL> self . assertTrue ( <EOL> os . path . exists ( os . path . join ( self . BASE_DIR , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) ) ) <EOL> with open ( os . path . join ( self . BASE_DIR , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) , '<STR_LIT:r>' ) as js : <EOL> service = js . read ( ) <EOL> self . assertTrue ( '<STR_LIT>' in service ) <EOL> self . assertTrue ( '<STR_LIT>' in service ) <EOL> self . assertTrue ( '<STR_LIT>' in service ) <EOL> self . assertTrue ( '<STR_LIT>' in service ) <EOL> self . assertTrue ( '<STR_LIT>' in service ) <EOL> def tearDown ( self ) : <EOL> shutil . rmtree ( os . path . join ( self . BASE_DIR , '<STR_LIT>' ) ) </s>
