# Path: publicstatic/helpers.py
# RE_H1 = re.compile(r"^\s*#\s*(.*)\s*", re.I | re.M | re.U)
# def makedirs(dir_path):
# def browse(url, delay):
# def parse_time(value, default=None):
# def check_build(path):
# def rmdir(path):
# def get_h1(text):
# def copydir(source, dest, force=False):
# def walk(path, operation):
# def tag_url(tag):
# def tag_path(tag):
# def execute(command, source, dest=''):
# def mergedicts(*args):
# def xsplit(sep, text, strip=False, drop_empty=False):
# def suffix(file_name, number):
# def newfile(file_name, text=''):
# def utime(path, value):
# def ext(file_name):


from publicstatic import helpers
# encoding: utf-8



def test_md():
    title = 'This is a title'
    test_data = """
        title: Page title
        created: 2010/08/13
        tasg: #hello

        # {title}

        """.format(title=title)

# Path: publicstatic/helpers.py
# RE_H1 = re.compile(r"^\s*#\s*(.*)\s*", re.I | re.M | re.U)
# def makedirs(dir_path):
# def browse(url, delay):
# def parse_time(value, default=None):
# def check_build(path):
# def rmdir(path):
# def get_h1(text):
# def copydir(source, dest, force=False):
# def walk(path, operation):
# def tag_url(tag):
# def tag_path(tag):
# def execute(command, source, dest=''):
# def mergedicts(*args):
# def xsplit(sep, text, strip=False, drop_empty=False):
# def suffix(file_name, number):
# def newfile(file_name, text=''):
# def utime(path, value):
# def ext(file_name):


# Path: tests/test_helpers.py
from publicstatic import helpers

# encoding: utf-8



def test_md():
    title = 'This is a title'
    test_data = """
        title: Page title
        created: 2010/08/13
        tasg: #hello

        # {title}

        """.format(title=title)

    assert helpers.get_h1(test_data) == title