photolib/tests/test_misc.py

13 lines
318 B
Python

import json
from tests.lib import PhotolibTest
class PhotolibTestMisc(PhotolibTest):
def test_index(self):
"""
Tests that the '/' url returns a redirect to '/feed'
"""
self.getPage("/")
self.assertStatus('302 Found')
self.assertHeaderEndsWith('Location', '/feed')