Atthavit Wannasakwong

9%
Flag icon
.assertTemplateUsed is the test method that the Django TestCase class provides us. It lets us check what template was used to render a response (NB — it will only work for responses that were retrieved by the test client). And that test will still pass:
Test-Driven Development with Python: Obey the Testing Goat: Using Django, Selenium, and JavaScript
Rate this book
Clear rating