#NEWLINE# def test_cluster_without_ambari( self ) : #NEWLINE# #INDENT# cluster = make_cluster ( { #NEWLINE# #INDENT# 1 : [ 'spam' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# with mock . patch ( 'sahara.plugins.ambari.validation.conductor' ) as p : #NEWLINE# #INDENT# p . cluster_get = mock . Mock ( ) #NEWLINE# p . cluster_get . return_value = cluster #NEWLINE# self . assertRaises ( exceptions . InvalidComponentCountException , self . plugin . validate , cluster )