self.subTest is a part of Django's TestCase class and is used as follows: def test_a_view(self): response = self.client.get(url) with self.subTest("Response status code"): self.assertEqual(response.status_code, 200) with self.su...
Software Engineer
Markdown supported · ⌘↵ to post
No responses yet.