# Path: kibitzr/transformer/factory.py
# def load_transforms():
#     def __init__(self, conf):
#     def run_pipeline(self, ok, content):
#     def create_transform(self, rule):
#     def on_error(self, content):
# class TransformPipeline(object):
#     REGISTRY = load_transforms()


from kibitzr.transformer import transform_factory
# -*- coding: utf-8 -*-


HTML = u"""<?xml version="1.0" encoding="utf-8"?>
<html>
    <body>
        <h2 class="header nav">
            <a href="page.html" id="page-link">Page</a>
        </h2>
        <div id="content">
            Привет, Мир!
        </div>
        <div class="footer">
            Footer content
        </div>
    </body>
</html>
"""


def run_transform(key, value, content):

# Path: kibitzr/transformer/factory.py
# def load_transforms():
#     def __init__(self, conf):
#     def run_pipeline(self, ok, content):
#     def create_transform(self, rule):
#     def on_error(self, content):
# class TransformPipeline(object):
#     REGISTRY = load_transforms()


# Path: tests/unit/transforms/helpers.py
from kibitzr.transformer import transform_factory

# -*- coding: utf-8 -*-


HTML = u"""<?xml version="1.0" encoding="utf-8"?>
<html>
    <body>
        <h2 class="header nav">
            <a href="page.html" id="page-link">Page</a>
        </h2>
        <div id="content">
            Привет, Мир!
        </div>
        <div class="footer">
            Footer content
        </div>
    </body>
</html>
"""


def run_transform(key, value, content):

    pipeline = transform_factory({'transform': [{key: value}]})