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

1from django.test import TestCase, Client 

2 

3# Create your tests here. 

4class TestUrls(TestCase): 

5 

6 def test_default_route_return_http200(self): 

7 c = Client() 

8 response = c.post(f"/") 

9 self.assertEqual(response.status_code, 200) 

10 

11 def test_default_route_render_index(self): 

12 c = Client() 

13 response = c.post(f"/") 

14 self.assertTemplateUsed(response, 'policon/index.html') 

15 

16if __name__ == "__main__": 

17 unittest.main()