Total Complexity | 1 |
Total Lines | 11 |
Duplicated Lines | 0 % |
Changes | 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 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.