"""Check the public six-provider source table derived from FinRegLab's report page."""
from pathlib import Path
import csv

path = Path(__file__).with_suffix('.csv')
with path.open(encoding='utf-8', newline='') as handle:
    rows = list(csv.DictReader(handle))

assert len(rows) == 6
assert len({row['provider'] for row in rows}) == 6
assert all(row['reported_comparison'] for row in rows)
print('Providers inspected by FinRegLab:', ', '.join(row['provider'] for row in rows))
