#NEWLINE# @ mock . patch ( 'tarfile.open' ) #NEWLINE# def test_create_packages_archive_package_submodule( self , tar ) : #NEWLINE# #INDENT# package_submodule = __import__ ( 'package.submodule' , None , None , 'dummy' ) #NEWLINE# luigi . contrib . hadoop . create_packages_archive ( [ package_submodule ] , '/dev/null' ) #NEWLINE# self . _assert_package ( tar . return_value . add )