comics.tests.HomeTests.test_home_title()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
from django.test import TestCase
2
3
4
class HomeTests(TestCase):
5
    """Tests for the home page."""
6
    def test_home_title(self):
7
        """The title should have "Nibble" in it."""
8
        response = self.client.get('/')
9
10
        self.assertIn('<title>Nibble', str(response.content))
11
12
13
class DashboardTests(TestCase):
14
    """Tests for the dasboard."""
15
    def test_dashboard(self):
16
        response = self.client.get('/dashboard/')
17
18
        self.assertEqual(response.status_code, 200)
19