<s> import os <EOL> from os . path import basename , dirname , relpath <EOL> from test . framework . base_unit_test_case import BaseUnitTestCase <EOL> class TestTest ( BaseUnitTestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_all_test_subdirectories_have_init_py_file ( self ) : <EOL> repo_test_dir_path = dirname ( dirname ( __file__ ) ) <EOL> self . assertEqual ( basename ( repo_test_dir_path ) , '<STR_LIT:test>' , '<STR_LIT>' <EOL> '<STR_LIT>' ) <EOL> exempt_dirs = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> for dir_path , _ , files in os . walk ( repo_test_dir_path ) : <EOL> if any ( exempt_dir in dir_path for exempt_dir in exempt_dirs ) : <EOL> continue <EOL> self . assertIn ( <EOL> '<STR_LIT>' , files , <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' . format ( relpath ( dir_path , repo_test_dir_path ) ) ) </s>
