def test_that_when_deleting_a_topic_rule_succeeds_the_delete_topic_rule_method_returns_true(self): ''' tests True topic_rule deleted. ''' result = boto_iot.delete_topic_rule(ruleName='testrule', **conn_parameters) self.assertTrue(result['deleted'])
def test_that_when_deleting_a_topic_rule_fails_the_delete_topic_rule_method_returns_false(self): ''' tests False topic_rule not deleted. ''' self.conn.delete_topic_rule.side_effect = ClientError(error_content, 'delete_topic_rule') result = boto_iot.delete_topic_rule(ruleName='testrule', **conn_parameters) self.assertFalse(result['deleted'])
def test_that_when_deleting_a_topic_rule_fails_the_delete_topic_rule_method_returns_false( self, ): """ tests False topic_rule not deleted. """ self.conn.delete_topic_rule.side_effect = ClientError(error_content, "delete_topic_rule") result = boto_iot.delete_topic_rule(ruleName="testrule", **conn_parameters) assert not result["deleted"]
def test_that_when_deleting_a_topic_rule_succeeds_the_delete_topic_rule_method_returns_true( self, ): """ tests True topic_rule deleted. """ result = boto_iot.delete_topic_rule(ruleName="testrule", **conn_parameters) assert result["deleted"]
def test_that_when_deleting_a_topic_rule_fails_the_delete_topic_rule_method_returns_false( boto_conn): ''' tests False topic_rule not deleted. ''' boto_conn.delete_topic_rule.side_effect = exceptions.ClientError( error_content, 'delete_topic_rule') result = boto_iot.delete_topic_rule(ruleName='testrule', **pytest.conn_parameters) assert not result['deleted']