def test_source_display_data(self):
    file_name = 'some_avro_source'
    source = _create_avro_source(file_name, validate=False, use_fastavro=self.use_fastavro)
    dd = DisplayData.create_from(source)
    expected_items = [DisplayDataItemMatcher('compression', 'auto'), DisplayDataItemMatcher('file_pattern', file_name)]
    hc.assert_that(dd.items, hc.contains_inanyorder(*expected_items))
def test_source_display_data(self):
    file_name = 'some_avro_source'
    source = _create_avro_source(file_name, validate=False, use_fastavro=self.use_fastavro)
    dd = DisplayData.create_from(source)
    expected_items = [DisplayDataItemMatcher('compression', 'auto'), DisplayDataItemMatcher('file_pattern', file_name)]
    hc.assert_that(dd.items, hc.contains_inanyorder(*expected_items))