<s> from helpers import LuigiTestCase <EOL> import luigi <EOL> import luigi . interface <EOL> import tempfile <EOL> import re <EOL> _testing_glob_var = None <EOL> class CmdlineTest ( LuigiTestCase ) : <EOL> def test_dynamic_loading ( self ) : <EOL> with tempfile . NamedTemporaryFile ( dir = '<STR_LIT>' , prefix = "<STR_LIT>" , suffix = '<STR_LIT>' ) as temp_module_file : <EOL> temp_module_file . file . write ( b'''<STR_LIT>''' ) <EOL> temp_module_file . file . flush ( ) <EOL> temp_module_path = temp_module_file . name <EOL> temp_module_name = re . search ( r'<STR_LIT>' , temp_module_path ) . group ( <NUM_LIT:1> ) <EOL> luigi . interface . run ( [ '<STR_LIT>' , temp_module_name , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> self . assertEqual ( luigi . _testing_glob_var , <NUM_LIT> ) </s>
