mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
17 lines
660 B
Python
17 lines
660 B
Python
import unittest
|
|
from django.utils import simplejson as json
|
|
from django.test.client import Client
|
|
|
|
class FeedTest(unittest.TestCase):
|
|
fixtures = ['feeds.json']
|
|
|
|
def setUp(self):
|
|
self.client = Client()
|
|
|
|
def test_load_feeds(self):
|
|
self.client.login(userame='conesus', password='test')
|
|
response = self.client.get('/reader/refresh_feed', { "feed_id": 19, "force": True })
|
|
response = self.client.get('/reader/refresh_feed', { "feed_id": 19, "force": True })
|
|
response = self.client.get('/reader/load_single_feed', { "feed_id": 19 })
|
|
print response.content
|
|
print json.loads(response.content)[0]
|