# 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
        self.assertEqual(self.jdh_feed, jh)

    def test_url_non_https(self):
        jh = FBC('http://journalduhacker.net/').construct()
        self.assertEqual(self.jdh_feed, jh)

    def test_url_rss(self):
        jdh_feed = self.jdh_feed
        jh = FBC('http://journalduhacker.net/rss').construct()
        self.assertEqual(jdh_feed, jh)

    def test_joies_du_code(self):
        self.maxDiff = None
        joi = FBC('https://lesjoiesducode.fr/feed').construct()
        joi.pop('icon_url')
        self.assertEqual(
                {'feed_type': FeedType.classic,
                 'link': 'https://lesjoiesducode.fr/feed',
                 'site_link': 'https://lesjoiesducode.fr',
                 'title': 'Les Joies du Code – Humour de développeurs '
                 ': gifs, memes, blagues'}, joi)

    def test_apod_from_site(self):
        nasa = FBC('http://apod.nasa.gov/').construct()
        self.assertEqual(
                {'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)


# 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

        self.assertEqual(self.jdh_feed, jh)

    def test_url_non_https(self):
        jh = FBC('http://journalduhacker.net/').construct()
        self.assertEqual(self.jdh_feed, jh)

    def test_url_rss(self):
        jdh_feed = self.jdh_feed
        jh = FBC('http://journalduhacker.net/rss').construct()
        self.assertEqual(jdh_feed, jh)

    def test_joies_du_code(self):
        self.maxDiff = None
        joi = FBC('https://lesjoiesducode.fr/feed').construct()
        joi.pop('icon_url')
        self.assertEqual(
                {'feed_type': FeedType.classic,
                 'link': 'https://lesjoiesducode.fr/feed',
                 'site_link': 'https://lesjoiesducode.fr',
                 'title': 'Les Joies du Code – Humour de développeurs '
                 ': gifs, memes, blagues'}, joi)

    def test_apod_from_site(self):
        nasa = FBC('http://apod.nasa.gov/').construct()
        self.assertEqual(
                {'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):