# Path: urbanaccess/gtfs/gtfsfeeds_dataframe.py
# class urbanaccess_gtfs_df(object):
#     """
#     A collection of DataFrames representing the standardized and
#     merged metropolitan-wide transit network from multiple
#     GTFS feeds.
# 
#     Parameters
#     ----------
#     gtfsfeeds_dfs : object
#         processed DataFrames of corresponding GTFS feed text files
#     gtfsfeeds_dfs.stops : pandas.DataFrame
#     gtfsfeeds_dfs.routes : pandas.DataFrame
#     gtfsfeeds_dfs.trips : pandas.DataFrame
#     gtfsfeeds_dfs.stop_times : pandas.DataFrame
#     gtfsfeeds_dfs.calendar : pandas.DataFrame
#     gtfsfeeds_dfs.calendar_dates : pandas.DataFrame
#     gtfsfeeds_dfs.stop_times_int : pandas.DataFrame
#     gtfsfeeds_dfs.headways : pandas.DataFrame
#     """
# 
#     def __init__(self,
#                  stops=pd.DataFrame(),
#                  routes=pd.DataFrame(),
#                  trips=pd.DataFrame(),
#                  stop_times=pd.DataFrame(),
#                  calendar=pd.DataFrame(),
#                  calendar_dates=pd.DataFrame(),
#                  stop_times_int=pd.DataFrame(),
#                  headways=pd.DataFrame()):
#         self.stops = stops
#         self.routes = routes
#         self.trips = trips
#         self.stop_times = stop_times
#         self.calendar = calendar
#         self.calendar_dates = calendar_dates
#         self.stop_times_int = stop_times_int
#         self.headways = headways


import pytest
import pandas as pd
import os
import six
import codecs
import sys
import urbanaccess.gtfs.load as gtfs_load
from urbanaccess.gtfs.gtfsfeeds_dataframe import urbanaccess_gtfs_df
    fix_txt = os.path.join(tmpdir.strpath, 'calendar.txt')
    data = ['  name  , text \n', '  Circulação  , áéíóúüñ¿¡ \n']
    if six.PY2:
        with open(fix_txt, 'w') as f:
            f.writelines(data)
    else:
        with open(fix_txt, 'w', encoding='utf-8') as f:
            f.writelines(data)

    fix_txt_wBOM = os.path.join(tmpdir.strpath, 'calendar_dates.txt')
    if six.PY2:
        data = [codecs.BOM_UTF8,
                '  name  , text \n',
                '  Circulação  , áéíóúüñ¿¡ \n']
        with open(fix_txt_wBOM, 'w') as f:
            f.writelines(data)
    else:
        data = [str(codecs.BOM_UTF8),
                '  name  , text \n',
                '  Circulação  , áéíóúüñ¿¡ \n']
        with open(fix_txt_wBOM, 'w', encoding='utf-8') as f:
            f.writelines(data)

    return tmpdir.strpath, do_not_fix_txt, fix_txt, fix_txt_wBOM


@pytest.fixture
def test_txt_files_to_use():
    gtfsfiles_to_use = ['stops.txt', 'routes.txt', 'trips.txt',
                        'stop_times.txt', 'calendar.txt',

# Path: urbanaccess/gtfs/gtfsfeeds_dataframe.py
# class urbanaccess_gtfs_df(object):
#     """
#     A collection of DataFrames representing the standardized and
#     merged metropolitan-wide transit network from multiple
#     GTFS feeds.
# 
#     Parameters
#     ----------
#     gtfsfeeds_dfs : object
#         processed DataFrames of corresponding GTFS feed text files
#     gtfsfeeds_dfs.stops : pandas.DataFrame
#     gtfsfeeds_dfs.routes : pandas.DataFrame
#     gtfsfeeds_dfs.trips : pandas.DataFrame
#     gtfsfeeds_dfs.stop_times : pandas.DataFrame
#     gtfsfeeds_dfs.calendar : pandas.DataFrame
#     gtfsfeeds_dfs.calendar_dates : pandas.DataFrame
#     gtfsfeeds_dfs.stop_times_int : pandas.DataFrame
#     gtfsfeeds_dfs.headways : pandas.DataFrame
#     """
# 
#     def __init__(self,
#                  stops=pd.DataFrame(),
#                  routes=pd.DataFrame(),
#                  trips=pd.DataFrame(),
#                  stop_times=pd.DataFrame(),
#                  calendar=pd.DataFrame(),
#                  calendar_dates=pd.DataFrame(),
#                  stop_times_int=pd.DataFrame(),
#                  headways=pd.DataFrame()):
#         self.stops = stops
#         self.routes = routes
#         self.trips = trips
#         self.stop_times = stop_times
#         self.calendar = calendar
#         self.calendar_dates = calendar_dates
#         self.stop_times_int = stop_times_int
#         self.headways = headways


# Path: urbanaccess/tests/test_gtfs_load.py
import pytest
import pandas as pd
import os
import six
import codecs
import sys
import urbanaccess.gtfs.load as gtfs_load
from urbanaccess.gtfs.gtfsfeeds_dataframe import urbanaccess_gtfs_df

    fix_txt = os.path.join(tmpdir.strpath, 'calendar.txt')
    data = ['  name  , text \n', '  Circulação  , áéíóúüñ¿¡ \n']
    if six.PY2:
        with open(fix_txt, 'w') as f:
            f.writelines(data)
    else:
        with open(fix_txt, 'w', encoding='utf-8') as f:
            f.writelines(data)

    fix_txt_wBOM = os.path.join(tmpdir.strpath, 'calendar_dates.txt')
    if six.PY2:
        data = [codecs.BOM_UTF8,
                '  name  , text \n',
                '  Circulação  , áéíóúüñ¿¡ \n']
        with open(fix_txt_wBOM, 'w') as f:
            f.writelines(data)
    else:
        data = [str(codecs.BOM_UTF8),
                '  name  , text \n',
                '  Circulação  , áéíóúüñ¿¡ \n']
        with open(fix_txt_wBOM, 'w', encoding='utf-8') as f:
            f.writelines(data)

    return tmpdir.strpath, do_not_fix_txt, fix_txt, fix_txt_wBOM


@pytest.fixture
def test_txt_files_to_use():
    gtfsfiles_to_use = ['stops.txt', 'routes.txt', 'trips.txt',
                        'stop_times.txt', 'calendar.txt',

                        'agency.txt', 'calendar_dates.txt']