from django.core.urlresolvers import reverse
from django.test.client import Client

from elastimorphic.tests.base import BaseIndexableTestCase

from model_mommy import mommy

from tests.testcontent.models import TestContentObj


class RSSTestCase(BaseIndexableTestCase):
    """A base test case, allowing tearDown and setUp of the ES index"""

    def test_rss_feed(self):

        # Let's bust out some content
        mommy.make(TestContentObj, _quantity=100)

        rss_endpoint = reverse("rss-feed")

        client = Client()
        response = client.get(rss_endpoint)
        self.assertEqual(response.status_code, 200)

from django.core.urlresolvers import reverse
from django.test.client import Client

from elastimorphic.tests.base import BaseIndexableTestCase

from model_mommy import mommy

from tests.testcontent.models import TestContentObj


class RSSTestCase(BaseIndexableTestCase):
    """A base test case, allowing tearDown and setUp of the ES index"""

    def test_rss_feed(self):

        # Let's bust out some content
        mommy.make(TestContentObj, _quantity=100)

        rss_endpoint = reverse("rss-feed")

        client = Client()
        response = client.get(rss_endpoint)
        self.assertEqual(response.status_code, 200)

A base test case, allowing tearDown and setUp of the ES index # Let's bust out some content