#NEWLINE# def test_security_plain( ) : #NEWLINE# #INDENT# tmpdir = tempfile . mkdtemp ( ) #NEWLINE# finish = SQOOP_CONF_DIR . set_for_testing ( tmpdir ) #NEWLINE# try : #NEWLINE# #INDENT# xml = sqoop_properties ( authentication = 'SIMPLE' ) #NEWLINE# with file ( os . path . join ( tmpdir , 'sqoop.properties' ) , 'w' ) as f : #NEWLINE# #INDENT# f . write ( xml ) #NEWLINE# #UNINDENT# reset ( ) #NEWLINE# client = SqoopClient ( 'test.com' , 'test' ) #NEWLINE# assert_false ( client . _security_enabled ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# reset ( ) #NEWLINE# finish ( ) #NEWLINE# shutil . rmtree ( tmpdir )