from csv import DictReader
import unittest

class Test(unittest.TestCase):

  def setUp(self):
    with open('crs.csv', 'r') as f:
      self.rows = list(DictReader(f, delimiter="\t"))

  def test_length(self):
    self.assertGreater(len(self.rows), 1000)

  def test_esriwkt(self):
    uniques = set([row['esriwkt'] for row in self.rows])
    self.assertGreater(len(uniques), 1000)

  def test_proj4js(self):
    uniques = set([row['proj4js'] for row in self.rows])
    self.assertGreater(len(uniques), 1000)

  def test_wkt(self):
    uniques = set([row['wkt'] for row in self.rows])
    self.assertGreater(len(uniques), 1000)

if __name__ == '__main__':
    unittest.main()
from csv import DictReader
import unittest

class Test(unittest.TestCase):

  def setUp(self):
    with open('crs.csv', 'r') as f:
      self.rows = list(DictReader(f, delimiter="\t"))

  def test_length(self):
    self.assertGreater(len(self.rows), 1000)

  def test_esriwkt(self):
    uniques = set([row['esriwkt'] for row in self.rows])
    self.assertGreater(len(uniques), 1000)

  def test_proj4js(self):
    uniques = set([row['proj4js'] for row in self.rows])
    self.assertGreater(len(uniques), 1000)

  def test_wkt(self):
    uniques = set([row['wkt'] for row in self.rows])
    self.assertGreater(len(uniques), 1000)

if __name__ == '__main__':
    unittest.main()