

def test_standalone_field_unique(self):
    filepath = os.path.join(self.data_dir, 'unique_field.csv')
    schema = os.path.join(self.data_dir, 'unique_field.json')
    validator = processors.SchemaProcessor(schema=schema)
    (result, report, data) = validator.run(filepath)
    self.assertEqual(len(report.generate()['results']), 1)

dataset/ETHPy150Open frictionlessdata/goodtables/tests/test_schema.py TestSchemaProcessor.test_standalone_field_unique/original