# 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/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 '/'


import os.path as path
import anchorhub.normalization.normalize_opts as n
from anchorhub.compatibility import get_path_separator
from anchorhub.util.getanchorhubpath import get_anchorhub_path
from anchorhub.compatibility import get_path_separator
normalize_opts.py
http://www.github.com/samjabrahams/anchorhub/normalization/normalize_opts.py
"""



class NormObj(object):
    """
    Helper class for testing out normalize_opts.normalize()
    """
    def __init__(self, input=None, output=None, wrapper=None, extensions=None,
                 overwrite=None):
        if input is not None:
            self.input = input
        if output is not None:
            self.output = output
        if wrapper is not None:
            self.wrapper = wrapper
        if extensions is not None:
            self.extensions = extensions
        if overwrite is not None:
            self.overwrite = overwrite


def test_normalize():
    """
    normalize_opts.py: Test normalize()
    """
    a = NormObj('.', 'anchorhub-out', '{ }', ['.md'], False)
    a = n.normalize(a)

# 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/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/normalization/tests/test_normalize_opts.py
import os.path as path
import anchorhub.normalization.normalize_opts as n
from anchorhub.compatibility import get_path_separator
from anchorhub.util.getanchorhubpath import get_anchorhub_path
from anchorhub.compatibility import get_path_separator

normalize_opts.py
http://www.github.com/samjabrahams/anchorhub/normalization/normalize_opts.py
"""



class NormObj(object):
    """
    Helper class for testing out normalize_opts.normalize()
    """
    def __init__(self, input=None, output=None, wrapper=None, extensions=None,
                 overwrite=None):
        if input is not None:
            self.input = input
        if output is not None:
            self.output = output
        if wrapper is not None:
            self.wrapper = wrapper
        if extensions is not None:
            self.extensions = extensions
        if overwrite is not None:
            self.overwrite = overwrite


def test_normalize():
    """
    normalize_opts.py: Test normalize()
    """
    a = NormObj('.', 'anchorhub-out', '{ }', ['.md'], False)
    a = n.normalize(a)

    assert a.input == '.' + get_path_separator()