#NEWLINE# def test_set_failed_state( self ) : #NEWLINE# #INDENT# exc_state = exception . InvalidState ( 'invalid state' ) #NEWLINE# exc_param = exception . InvalidParameterValue ( 'invalid parameter' ) #NEWLINE# mock_call = mock . call ( mock . ANY ) #NEWLINE# self . _test_set_failed_state ( ) #NEWLINE# calls = [ mock_call ] #NEWLINE# self . _test_set_failed_state ( event_value = iter ( ( [ exc_state ] * len ( calls ) ) ) , log_calls = calls ) #NEWLINE# calls = [ mock_call ] #NEWLINE# self . _test_set_failed_state ( power_value = iter ( ( [ mock_call ] * len ( calls ) ) ) , log_calls = calls ) #NEWLINE# calls = [ mock_call , mock_call ] #NEWLINE# self . _test_set_failed_state ( event_value = iter ( ( [ exc_state ] * len ( calls ) ) ) , power_value = iter ( ( [ exc_param ] * len ( calls ) ) ) , log_calls = calls )