# Path: piped/processors/xml_processors.py
# class MarkupRemover(base.MappingProcessor):
# class XPathProcessor(base.Processor):
#     def process_mapping(self, input, *a, **kw):
#     def __init__(self, xml_path, xpaths, **kw):
#     def _fail_if_lxml_is_not_available(self):
#     def process(self, baton):


from twisted.internet import defer
from twisted.trial import unittest
from piped.processors import xml_processors
    import lxml
# Copyright (c) 2011, Found IT A/S and Piped Project Contributors.
# See LICENSE for details.



class MarkupRemoverTest(unittest.TestCase):

    @defer.inlineCallbacks
    def test_simple_removal(self):
        xml = """
            <tag attribute="value">
                contents
            </tag>
        """

# Path: piped/processors/xml_processors.py
# class MarkupRemover(base.MappingProcessor):
# class XPathProcessor(base.Processor):
#     def process_mapping(self, input, *a, **kw):
#     def __init__(self, xml_path, xpaths, **kw):
#     def _fail_if_lxml_is_not_available(self):
#     def process(self, baton):


# Path: piped/processors/test/test_xml_processors.py
from twisted.internet import defer
from twisted.trial import unittest
from piped.processors import xml_processors
    import lxml

# Copyright (c) 2011, Found IT A/S and Piped Project Contributors.
# See LICENSE for details.



class MarkupRemoverTest(unittest.TestCase):

    @defer.inlineCallbacks
    def test_simple_removal(self):
        xml = """
            <tag attribute="value">
                contents
            </tag>
        """

        processor = xml_processors.MarkupRemover(mapping=[''])