1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-11-14 07:39:14 +00:00
nyaa/tests/views/test_site.py
2017-08-15 17:19:45 +03:00

27 lines
650 B
Python

import unittest
from tests import NyaaTestCase
class SiteTestCase(NyaaTestCase):
""" Tests for nyaa.views.site """
# def test_about_url(self):
# rv = self.client.get('/about')
# self.assertIn(b'About', rv.data)
def test_rules_url(self):
rv = self.client.get('/rules')
self.assertIn(b'Site Rules', rv.data)
def test_help_url(self):
rv = self.client.get('/help')
self.assertIn(b'Using the Site', rv.data)
def test_xmlns_url(self):
rv = self.client.get('/xmlns/nyaa')
self.assertIn(b'Nyaa XML Namespace', rv.data)
if __name__ == '__main__':
unittest.main()