def test_delete_text_filter(self):
    sample_filter = self._get_sample_text_filter()
    created_filter_response = self.bitmovin.filters.Text.create(sample_filter)
    self.assertIsNotNone(created_filter_response)
    self.assertIsNotNone(created_filter_response.resource)
    self.assertIsNotNone(created_filter_response.resource.id)
    self._compare_text_filters(sample_filter, created_filter_response.resource)
    deleted_minimal_resource = self.bitmovin.filters.Text.delete(created_filter_response.resource.id)
    self.assertIsNotNone(deleted_minimal_resource)
    self.assertIsNotNone(deleted_minimal_resource.resource)
    self.assertIsNotNone(deleted_minimal_resource.resource.id)
    try:
        self.bitmovin.filters.Text.retrieve(created_filter_response.resource.id)
        self.fail(('Previous statement should have thrown an exception. ' + "Retrieving filter after deleting it shouldn't be possible."))
    except BitmovinApiError:
        pass
def test_delete_text_filter(self):
    sample_filter = self._get_sample_text_filter()
    created_filter_response = self.bitmovin.filters.Text.create(sample_filter)
    self.assertIsNotNone(created_filter_response)
    self.assertIsNotNone(created_filter_response.resource)
    self.assertIsNotNone(created_filter_response.resource.id)
    self._compare_text_filters(sample_filter, created_filter_response.resource)
    deleted_minimal_resource = self.bitmovin.filters.Text.delete(created_filter_response.resource.id)
    self.assertIsNotNone(deleted_minimal_resource)
    self.assertIsNotNone(deleted_minimal_resource.resource)
    self.assertIsNotNone(deleted_minimal_resource.resource.id)
    try:
        self.bitmovin.filters.Text.retrieve(created_filter_response.resource.id)
        self.fail(('Previous statement should have thrown an exception. ' + "Retrieving filter after deleting it shouldn't be possible."))
    except BitmovinApiError:
        pass