# Path: ramjet/tasks/twitter/base.py
# def get_tweet_text(tweet: Dict[str, Any]) -> str:
# def replace_to_laisky_url(url: str) -> str:
# def get_image_filepath(media_entity: Dict[str, Any]) -> Path:
# def get_md5_hierachy_dir(fname: str) -> str:
# def replace_media_urls(tweet: Dict[str, Any]) -> None:
# def replace_short_urls(tweet: Dict[str, Any]) -> None:
# def twitter_api_parser(tweet: Dict[str, Any]) -> Dict[str, Any]:
# def gen_related_tweets(
#     tweetCol: pymongo.collection.Collection,
#     tweet: Dict[str, Any],
# ) -> List[str]:
# def twitter_history_parser(tweet: Dict[str, Any]):


from collections import namedtuple
from unittest import TestCase
from ramjet.tasks.twitter.base import twitter_surl_regex



class TestBase(TestCase):
    def test_twitter_surl_regex(self):
        Case = namedtuple("Case", ["input", "output"])

# Path: ramjet/tasks/twitter/base.py
# def get_tweet_text(tweet: Dict[str, Any]) -> str:
# def replace_to_laisky_url(url: str) -> str:
# def get_image_filepath(media_entity: Dict[str, Any]) -> Path:
# def get_md5_hierachy_dir(fname: str) -> str:
# def replace_media_urls(tweet: Dict[str, Any]) -> None:
# def replace_short_urls(tweet: Dict[str, Any]) -> None:
# def twitter_api_parser(tweet: Dict[str, Any]) -> Dict[str, Any]:
# def gen_related_tweets(
#     tweetCol: pymongo.collection.Collection,
#     tweet: Dict[str, Any],
# ) -> List[str]:
# def twitter_history_parser(tweet: Dict[str, Any]):


# Path: ramjet/tasks/twitter/tests/test_base.py
from collections import namedtuple
from unittest import TestCase
from ramjet.tasks.twitter.base import twitter_surl_regex




class TestBase(TestCase):
    def test_twitter_surl_regex(self):
        Case = namedtuple("Case", ["input", "output"])

        cases = [