# Path: anchorhub/lib/filetolist.py
# class FileToList(object):
#     """
#     FileToList is a helper class used to import text files and turn them into
#     lists, with each index in the list representing a single line from the
#     text file.
#     """
#     @staticmethod
#     def to_list(file_path):
#         """
#         Static method. Takes in a file path, and outputs a list of stings.
#         Each element in the list corresponds to a line in the file.
#         :param file_path: string file path
#         :return: A list of strings, with elements in the list corresponding
#         to lines in the file pointed to in file_path
#         """
#         l = []
#         f = open(file_path, 'r')
#         for line in f:
#             l.append(line)
#         f.close()
#         return l
# 
# Path: anchorhub/util/getanchorhubpath.py
# def get_anchorhub_path():
#     """
#     Returns the absolute path to the AnchorHub directory. Will be used to run
#     tests using folders located within the AnchorHub root.
# 
#     :return: String path to AnchorHub directory
#     """
#     return path.abspath(path.dirname(anchorhub.__file__))
# 
# Path: anchorhub/compatibility.py
# def get_path_separator():
#     """
#     Returns the appropriate file path separator depending on operating
#     system. That is, when run on UNIX-like systems it returns a forward slash
#     ('/'), and for Windows it returns a backslash ('\')
#     :return: String. The file path separator for the current operating system.
#     """
#     if os.name == 'nt':
#         return '\\'
#     else:
#         return '/'


from anchorhub.lib.filetolist import FileToList
from anchorhub.util.getanchorhubpath import get_anchorhub_path
from anchorhub.compatibility import get_path_separator
"""
Tests for filetolist.py

filetolist.py:
http://www.github.com/samjabrahams/anchorhub/lib/filetolist.py
"""


def test_file_to_list_basic():

# Path: anchorhub/lib/filetolist.py
# class FileToList(object):
#     """
#     FileToList is a helper class used to import text files and turn them into
#     lists, with each index in the list representing a single line from the
#     text file.
#     """
#     @staticmethod
#     def to_list(file_path):
#         """
#         Static method. Takes in a file path, and outputs a list of stings.
#         Each element in the list corresponds to a line in the file.
#         :param file_path: string file path
#         :return: A list of strings, with elements in the list corresponding
#         to lines in the file pointed to in file_path
#         """
#         l = []
#         f = open(file_path, 'r')
#         for line in f:
#             l.append(line)
#         f.close()
#         return l
# 
# Path: anchorhub/util/getanchorhubpath.py
# def get_anchorhub_path():
#     """
#     Returns the absolute path to the AnchorHub directory. Will be used to run
#     tests using folders located within the AnchorHub root.
# 
#     :return: String path to AnchorHub directory
#     """
#     return path.abspath(path.dirname(anchorhub.__file__))
# 
# Path: anchorhub/compatibility.py
# def get_path_separator():
#     """
#     Returns the appropriate file path separator depending on operating
#     system. That is, when run on UNIX-like systems it returns a forward slash
#     ('/'), and for Windows it returns a backslash ('\')
#     :return: String. The file path separator for the current operating system.
#     """
#     if os.name == 'nt':
#         return '\\'
#     else:
#         return '/'


# Path: anchorhub/lib/tests/test_data/test_filetolist.py
from anchorhub.lib.filetolist import FileToList
from anchorhub.util.getanchorhubpath import get_anchorhub_path
from anchorhub.compatibility import get_path_separator

"""
Tests for filetolist.py

filetolist.py:
http://www.github.com/samjabrahams/anchorhub/lib/filetolist.py
"""


def test_file_to_list_basic():

    sep = get_path_separator()