def test_retrieve_text_filter_custom_data(self):
    sample_filter = self._get_sample_text_filter()
    sample_filter.customData = '<pre>my custom data</pre>'
    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)
    custom_data_response = self.bitmovin.filters.Text.retrieve_custom_data(created_filter_response.resource.id)
    custom_data = custom_data_response.resource
    self.assertEqual(sample_filter.customData, json.loads(custom_data.customData))
def test_retrieve_text_filter_custom_data(self):
    sample_filter = self._get_sample_text_filter()
    sample_filter.customData = '<pre>my custom data</pre>'
    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)
    custom_data_response = self.bitmovin.filters.Text.retrieve_custom_data(created_filter_response.resource.id)
    custom_data = custom_data_response.resource
    self.assertEqual(sample_filter.customData, json.loads(custom_data.customData))