~linuxgoose/bocpress

ref: 6eda6226133fa1c7b2a397b1007bee11dc2d3379 bocpress/main/tests/test_static.py -rw-r--r-- 1.0 KiB
6eda6226Jordan Robinson add help text for tags 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from django.test import TestCase
from django.urls import reverse


class StaticTestCase(TestCase):
    def test_methodology(self):
        response = self.client.get(reverse("methodology"))
        self.assertEqual(response.status_code, 200)

    def test_transparency(self):
        response = self.client.get(reverse("transparency"))
        self.assertEqual(response.status_code, 200)
        self.assertContains(response, "Total")

    def test_guides_markdown(self):
        response = self.client.get(reverse("guides_markdown"))
        self.assertEqual(response.status_code, 200)

    def test_guides_images(self):
        response = self.client.get(reverse("guides_images"))
        self.assertEqual(response.status_code, 200)

    def test_comparisons(self):
        response = self.client.get(reverse("comparisons"))
        self.assertEqual(response.status_code, 200)

    def test_export(self):
        """Test export index page as an anon user."""
        response = self.client.get(reverse("export_index"))
        self.assertEqual(response.status_code, 200)