# Path: chemdataextractor/scrape/clean.py
# class Cleaner(object):
#     def __init__(self, **kwargs):
#     def __call__(self, doc):
#     def clean_html(self, html):
#     def clean_markup(self, markup, parser=None):


import logging
import unittest
from lxml.etree import tostring
from lxml import html
from chemdataextractor.scrape.clean import Cleaner, clean, strip, strip_markup, strip_html
# -*- coding: utf-8 -*-
"""
test_scrape_clean
~~~~~~~~~~~~~~~~~

Test the HTML/XML Cleaner.

"""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals




logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)


# Input HTML
HTML1 = '''
<html>
  <body>
    <!-- A comment at the start of the document -->

# Path: chemdataextractor/scrape/clean.py
# class Cleaner(object):
#     def __init__(self, **kwargs):
#     def __call__(self, doc):
#     def clean_html(self, html):
#     def clean_markup(self, markup, parser=None):


# Path: tests/test_scrape_clean.py
import logging
import unittest
from lxml.etree import tostring
from lxml import html
from chemdataextractor.scrape.clean import Cleaner, clean, strip, strip_markup, strip_html

# -*- coding: utf-8 -*-
"""
test_scrape_clean
~~~~~~~~~~~~~~~~~

Test the HTML/XML Cleaner.

"""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals




logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)


# Input HTML
HTML1 = '''
<html>
  <body>
    <!-- A comment at the start of the document -->

    <div><h1>Heading</h1></div>