# Path: saulify/scrapers/cascade.py
# def clean_url(url):
#     """ Extract article from given url using `scraper_cascade`
# 
#     Args:
#         url (str): Url of article to be scraped.
# 
#     Returns:
#         Dictionary detailing the extracted article.
#     """
# 
#     content = download.download_url(url)
#     result = scraper_cascade(url, content)
# 
#     return result


import re
import urlparse
import lxml.html
from saulify.scrapers.cascade import clean_url
__all__ = ["TestCase"]




class TestCase(object):
    """
    Test case for the article scraper.

    Attributes:
      url (str): URL of the page being tested
    """

    def __init__(self, spec):
        """ Create a new TestCase object.

        Args:
            spec (defaultdict of list): Dictionary containing test directives
            as returned by `saulify.sitespec.load_testcases`. Must contain a
            `"test_url"` key.
        """
        self.url = spec["test_url"]
        self._spec = spec

    def run(self):
        try:

# Path: saulify/scrapers/cascade.py
# def clean_url(url):
#     """ Extract article from given url using `scraper_cascade`
# 
#     Args:
#         url (str): Url of article to be scraped.
# 
#     Returns:
#         Dictionary detailing the extracted article.
#     """
# 
#     content = download.download_url(url)
#     result = scraper_cascade(url, content)
# 
#     return result


# Path: saulify/testcase.py
import re
import urlparse
import lxml.html
from saulify.scrapers.cascade import clean_url

__all__ = ["TestCase"]




class TestCase(object):
    """
    Test case for the article scraper.

    Attributes:
      url (str): URL of the page being tested
    """

    def __init__(self, spec):
        """ Create a new TestCase object.

        Args:
            spec (defaultdict of list): Dictionary containing test directives
            as returned by `saulify.sitespec.load_testcases`. Must contain a
            `"test_url"` key.
        """
        self.url = spec["test_url"]
        self._spec = spec

    def run(self):
        try:

            output = clean_url(self.url)