'Load test data into the DB and return it as a string for comparison.'

def csvsql(self, csv_file, db=None):

    if (not db):
        db = ('sqlite:///' + self.db_file)
    args = ['--db', db, '--tables', 'foo', '--insert', csv_file]
    utility = CSVSQL(args)
    utility.run()
    with open(csv_file, 'r') as f:
        text = f.read()
    return text.strip()
