mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 20:00:01 +00:00
27 lines
650 B
Python
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()
|