# Path: saulify/sitespec.py
# def parse_specfile(f):
# def load_testcases(f):
# def load_rules(f):


import io
from saulify import sitespec
        title://*[contains(@class,'post-title')]
        body://div[contains(@class,'post-body')]
        body://div[contains(@class,'entry-content')]
    """, {
        "title": [
            "//*[contains(@class,'post-title')]"
        ],
        "body": [
            "//div[contains(@class,'post-body')]",
            "//div[contains(@class,'entry-content')]"
        ]
    })


def test_loading_find_replace():
    specload_verifier(u"""
        find_string: <script type="text/javascript">
        replace_string: <div style="display:none;">
        find_string: </script>
        replace_string: </div>
    """, {
        "find_replace": [
            ('<script type="text/javascript">', '<div style="display:none;">'),
            ("</script>", "</div>")
        ],
    })


def test_loading_boolean_properties():
    specload_verifier(u"""

# Path: saulify/sitespec.py
# def parse_specfile(f):
# def load_testcases(f):
# def load_rules(f):


# Path: tests/test_sitespec.py
import io
from saulify import sitespec

        title://*[contains(@class,'post-title')]
        body://div[contains(@class,'post-body')]
        body://div[contains(@class,'entry-content')]
    """, {
        "title": [
            "//*[contains(@class,'post-title')]"
        ],
        "body": [
            "//div[contains(@class,'post-body')]",
            "//div[contains(@class,'entry-content')]"
        ]
    })


def test_loading_find_replace():
    specload_verifier(u"""
        find_string: <script type="text/javascript">
        replace_string: <div style="display:none;">
        find_string: </script>
        replace_string: </div>
    """, {
        "find_replace": [
            ('<script type="text/javascript">', '<div style="display:none;">'),
            ("</script>", "</div>")
        ],
    })


def test_loading_boolean_properties():
    specload_verifier(u"""

        prune: yes