##### SUMMARY

Add integration tests for the csvfile lookup plugin.

##### ISSUE TYPE

Feature Idea

##### COMPONENT NAME

csvfile lookup plugin

"""
    Iterator that reads an encoded stream and reencodes the input to UTF-8
    """
    def __init__(self, f, encoding='utf-8'):
        self.reader = codecs.getreader(encoding)(f)
    def __iter__(self):
        return self
    def __next__(self):
        return next(self.reader).encode("utf-8")
    next = __next__   
class CSVReader: