<s> import mock <EOL> from sahara . plugins . cdh . v5 import plugin_utils as pu <EOL> from sahara . tests . unit . plugins . cdh import base_plugin_utils_test <EOL> class TestPluginUtilsV5 ( base_plugin_utils_test . TestPluginUtils ) : <EOL> def setUp ( self ) : <EOL> super ( TestPluginUtilsV5 , self ) . setUp ( ) <EOL> self . plug_utils = pu . PluginUtilsV5 ( ) <EOL> self . version = "<STR_LIT>" <EOL> @ mock . patch ( '<STR_LIT>' ) <EOL> def test_create_hive_hive_directory ( self , log_cfg ) : <EOL> cluster = base_plugin_utils_test . get_concrete_cluster ( ) <EOL> namenode = cluster . node_groups [ <NUM_LIT:1> ] . instances [ <NUM_LIT:0> ] <EOL> self . plug_utils . create_hive_hive_directory ( cluster ) <EOL> with namenode . remote ( ) as r : <EOL> calls = [ mock . call ( '<STR_LIT>' <EOL> '<STR_LIT>' ) , <EOL> mock . call ( '<STR_LIT>' <EOL> '<STR_LIT>' ) ] <EOL> r . execute_command . assert_has_calls ( calls , any_order = False ) </s>
