photolib/tests/test_misc.py

13 lines
318 B
Python
Raw Permalink Normal View History

2023-01-18 20:05:08 -08:00
import json
from tests.lib import PhotolibTest
2023-01-17 22:04:29 -08:00
2023-01-18 20:05:08 -08:00
class PhotolibTestMisc(PhotolibTest):
2023-01-17 22:04:29 -08:00
def test_index(self):
"""
Tests that the '/' url returns a redirect to '/feed'
"""
self.getPage("/")
self.assertStatus('302 Found')
self.assertHeaderEndsWith('Location', '/feed')