Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

from django.http import HttpRequest 

from django.test import SimpleTestCase 

from django.urls import reverse 

 

 

class HomePageTests(SimpleTestCase): 

 

def test_home_page_status_code(self): 

response = self.client.get(reverse('pages:home'), follow=True) 

self.assertEqual(response.status_code, 200) 

 

def test_home_page_uses_correct_template(self): 

response = self.client.get(reverse('pages:home')) 

self.assertTemplateUsed(response, 'home.html')