Files
edx-platform/lms/djangoapps/rss_proxy/tests/test_models.py
Awais Qureshi ea26268b0a BOM-2285
Apply pylint-amnesty.
2021-02-02 12:09:42 +05:00

24 lines
675 B
Python

"""
Tests for the rss_proxy models
"""
import six
from django.test import TestCase
from lms.djangoapps.rss_proxy.models import WhitelistedRssUrl
class WhitelistedRssUrlTests(TestCase):
""" Tests for the rss_proxy.WhitelistedRssUrl model """
def setUp(self):
super(WhitelistedRssUrlTests, self).setUp() # lint-amnesty, pylint: disable=super-with-arguments
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)