# Path: anchorhub/util/addsuffix.py
# def add_suffix(string, suffix):
#     """
#     Adds a suffix to a string, if the string does not already have that suffix.
# 
#     :param string: the string that should have a suffix added to it
#     :param suffix: the suffix to be added to the string
#     :return: the string with the suffix added, if it does not already end in
#         the suffix. Otherwise, it returns the original string.
#     """
#     if string[-len(suffix):] != suffix:
#         return string + suffix
#     else:
#         return string


from anchorhub.util.addsuffix import add_suffix
"""
Tests for add_suffix.py

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




def test_add_suffix():
    """
    normalize_ops.py: Test add_suffix()

    add_suffix() should add a suffix to a string, unless that string already
    ends with the suffix.
    """
    a = 'test'

# Path: anchorhub/util/addsuffix.py
# def add_suffix(string, suffix):
#     """
#     Adds a suffix to a string, if the string does not already have that suffix.
# 
#     :param string: the string that should have a suffix added to it
#     :param suffix: the suffix to be added to the string
#     :return: the string with the suffix added, if it does not already end in
#         the suffix. Otherwise, it returns the original string.
#     """
#     if string[-len(suffix):] != suffix:
#         return string + suffix
#     else:
#         return string


# Path: anchorhub/util/tests/test_addsuffix.py
from anchorhub.util.addsuffix import add_suffix

"""
Tests for add_suffix.py

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




def test_add_suffix():
    """
    normalize_ops.py: Test add_suffix()

    add_suffix() should add a suffix to a string, unless that string already
    ends with the suffix.
    """
    a = 'test'

    assert add_suffix(a, 'cow') == 'testcow'