def test_that_when_stopping_logging_succeeds_the_stop_logging_method_returns_true(self): ''' tests True logging stopped. ''' result = boto_cloudtrail.stop_logging(Name=trail_ret['Name'], **conn_parameters) self.assertTrue(result['stopped'])
def test_that_when_stopping_logging_succeeds_the_stop_logging_method_returns_true(self): ''' tests True logging stopped. ''' result = boto_cloudtrail.stop_logging(Name=trail_ret['Name'], **conn_parameters) self.assertTrue(result['stopped'])
def test_that_when_stop_logging_fails_the_stop_logging_method_returns_false(self): """ tests False logging not stopped. """ self.conn.describe_trails.return_value = {"trailList": []} self.conn.stop_logging.side_effect = ClientError(error_content, "stop_logging") result = boto_cloudtrail.stop_logging(Name=trail_ret["Name"], **conn_parameters) self.assertFalse(result["stopped"])
def test_that_when_stop_logging_fails_the_stop_logging_method_returns_false(self): ''' tests False logging not stopped. ''' self.conn.describe_trails.return_value = {'trailList': []} self.conn.stop_logging.side_effect = ClientError(error_content, 'stop_logging') result = boto_cloudtrail.stop_logging(Name=trail_ret['Name'], **conn_parameters) self.assertFalse(result['stopped'])
def test_that_when_stop_logging_fails_the_stop_logging_method_returns_false(self): ''' tests False logging not stopped. ''' self.conn.describe_trails.return_value = {'trailList': []} self.conn.stop_logging.side_effect = ClientError(error_content, 'stop_logging') result = boto_cloudtrail.stop_logging(Name=trail_ret['Name'], **conn_parameters) self.assertFalse(result['stopped'])
def test_that_when_stopping_logging_succeeds_the_stop_logging_method_returns_true( self, ): """ tests True logging stopped. """ result = boto_cloudtrail.stop_logging(Name=trail_ret["Name"], **conn_parameters) self.assertTrue(result["stopped"])