Files
edx-platform/lms/djangoapps/rss_proxy/tests/test_models.py
Feanil Patel 9cf2f9f298 Run 2to3 -f future . -w
This will remove imports from __future__ that are no longer needed.

https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00

24 lines
606 B
Python

"""
Tests for the rss_proxy models
"""
import six
from django.test import TestCase
from rss_proxy.models import WhitelistedRssUrl
class WhitelistedRssUrlTests(TestCase):
""" Tests for the rss_proxy.WhitelistedRssUrl model """
def setUp(self):
super(WhitelistedRssUrlTests, self).setUp()
self.whitelisted_rss_url = WhitelistedRssUrl.objects.create(url='http://www.example.com')
def test_unicode(self):
"""
Test the unicode function returns the url
"""
self.assertEqual(six.text_type(self.whitelisted_rss_url), self.whitelisted_rss_url.url)