# Path: statik/generator.py
# def generate(input_path, output_path=None, in_memory=False, safe_mode=False, deploy_method=None, error_context=None):
#     """Executes the Statik site generator using the given parameters.
#     """
#     project = StatikProject(input_path, safe_mode=safe_mode, error_context=error_context)
#     return project.generate(output_path=output_path, in_memory=in_memory, deploy_method=deploy_method)


import unittest
import os.path
from xml.etree import ElementTree as ET
from statik.generator import generate
# -*- coding: utf-8 -*-
"""Regression test for issue #51."""




class TestStaticPagesFromProjectDynamicContext(unittest.TestCase):

    def test_issue(self):
        test_path = os.path.dirname(os.path.realpath(__file__))

# Path: statik/generator.py
# def generate(input_path, output_path=None, in_memory=False, safe_mode=False, deploy_method=None, error_context=None):
#     """Executes the Statik site generator using the given parameters.
#     """
#     project = StatikProject(input_path, safe_mode=safe_mode, error_context=error_context)
#     return project.generate(output_path=output_path, in_memory=in_memory, deploy_method=deploy_method)


# Path: tests/integration/test_issue_51.py
import unittest
import os.path
from xml.etree import ElementTree as ET
from statik.generator import generate

# -*- coding: utf-8 -*-
"""Regression test for issue #51."""




class TestStaticPagesFromProjectDynamicContext(unittest.TestCase):

    def test_issue(self):
        test_path = os.path.dirname(os.path.realpath(__file__))

        output_data = generate(