# Path: hecatoncheir/CSVUtils.py
# def csv2list(s):
# def csvquote(s):
# def list2csv(listitem):
#     def __init__(self, csvfile):
#     def check_header(self, required_columns):
#     def readline(self):
#     def readline_as_dict(self, use_lower=False):
# class CSVReader():


import os
import sys
import unittest
from hecatoncheir import CSVUtils
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-

sys.path.append('..')


class TestCSVUtils(unittest.TestCase):
    def setUp(self):
        pass

    def test_csv2list_001(self):
        self.assertEqual(['1','2','3'], CSVUtils.csv2list(u'1,2,3'))
        self.assertEqual(['1\n','2\r3','4\n\r5'], CSVUtils.csv2list(u'"1\n","2\r3","4\n\r5"'))

# Path: hecatoncheir/CSVUtils.py
# def csv2list(s):
# def csvquote(s):
# def list2csv(listitem):
#     def __init__(self, csvfile):
#     def check_header(self, required_columns):
#     def readline(self):
#     def readline_as_dict(self, use_lower=False):
# class CSVReader():


# Path: tests/testCSVUtils.py
import os
import sys
import unittest
from hecatoncheir import CSVUtils

#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-

sys.path.append('..')


class TestCSVUtils(unittest.TestCase):
    def setUp(self):
        pass

    def test_csv2list_001(self):
        self.assertEqual(['1','2','3'], CSVUtils.csv2list(u'1,2,3'))
        self.assertEqual(['1\n','2\r3','4\n\r5'], CSVUtils.csv2list(u'"1\n","2\r3","4\n\r5"'))

        self.assertEqual(['1,','2,3',',4'], CSVUtils.csv2list(u'"1,","2,3",",4"'))