# Path: jarr/lib/enums.py
# class FeedType(Enum):
#     classic = 'classic'
#     json = 'json'
#     tumblr = 'tumblr'
#     instagram = 'instagram'
#     soundcloud = 'soundcloud'
#     reddit = 'reddit'
#     koreus = 'koreus'
#     twitter = 'twitter'


import unittest
from jarr.controllers.feed_builder import FeedBuilderController as FBC
from jarr.lib.enums import FeedType
                {'icon_url': 'https://apod.nasa.gov/favicon.ico',
                 'feed_type': FeedType.classic,
                 'site_link': 'https://apod.nasa.gov/apod/astropix.html',
                 'title': 'Astronomy Picture of the Day'}, nasa)

    def test_apod_from_feed(self):
        nasa = FBC('http://apod.nasa.gov/apod.rss').construct()
        self.assertEqual(
                {'description': 'Astronomy Picture of the Day',
                 'feed_type': FeedType.classic,
                 'icon_url': 'https://apod.nasa.gov/favicon.ico',
                 'link': 'https://apod.nasa.gov/apod.rss',
                 'site_link': 'https://apod.nasa.gov/',
                 'title': 'APOD'}, nasa)

    def test_reddit_from_site(self):
        reddit = FBC('https://www.reddit.com/r/france/').construct()
        self.assertEqual({
            'description': 'Tout sur la France et les Français',
            'feed_type': FeedType.reddit,
            'icon_url': 'https://www.redditstatic.com/desktop2x/'
                        'img/favicon/android-icon-192x192.png',
            'site_link': 'https://www.reddit.com/r/france/',
            'link': 'https://www.reddit.com/r/france/.rss',
            'title': 'France'}, reddit)

    def test_reddit_from_feed(self):
        reddit = FBC('https://www.reddit.com/r/france/.rss').construct()
        self.assertEqual(
            {'description': 'Tout sur la France et les Français',

# Path: jarr/lib/enums.py
# class FeedType(Enum):
#     classic = 'classic'
#     json = 'json'
#     tumblr = 'tumblr'
#     instagram = 'instagram'
#     soundcloud = 'soundcloud'
#     reddit = 'reddit'
#     koreus = 'koreus'
#     twitter = 'twitter'


# Path: tests/libs/feed_utils_test.py
import unittest
from jarr.controllers.feed_builder import FeedBuilderController as FBC
from jarr.lib.enums import FeedType

                {'icon_url': 'https://apod.nasa.gov/favicon.ico',
                 'feed_type': FeedType.classic,
                 'site_link': 'https://apod.nasa.gov/apod/astropix.html',
                 'title': 'Astronomy Picture of the Day'}, nasa)

    def test_apod_from_feed(self):
        nasa = FBC('http://apod.nasa.gov/apod.rss').construct()
        self.assertEqual(
                {'description': 'Astronomy Picture of the Day',
                 'feed_type': FeedType.classic,
                 'icon_url': 'https://apod.nasa.gov/favicon.ico',
                 'link': 'https://apod.nasa.gov/apod.rss',
                 'site_link': 'https://apod.nasa.gov/',
                 'title': 'APOD'}, nasa)

    def test_reddit_from_site(self):
        reddit = FBC('https://www.reddit.com/r/france/').construct()
        self.assertEqual({
            'description': 'Tout sur la France et les Français',
            'feed_type': FeedType.reddit,
            'icon_url': 'https://www.redditstatic.com/desktop2x/'
                        'img/favicon/android-icon-192x192.png',
            'site_link': 'https://www.reddit.com/r/france/',
            'link': 'https://www.reddit.com/r/france/.rss',
            'title': 'France'}, reddit)

    def test_reddit_from_feed(self):
        reddit = FBC('https://www.reddit.com/r/france/.rss').construct()
        self.assertEqual(
            {'description': 'Tout sur la France et les Français',

             'feed_type': FeedType.reddit,