Testing
TestCase runs tests with a temporary database.
Example
from django.test import TestCase
class PostTests(TestCase):
def test_str(self):
p = Post(title="Hi")
self.assertEqual(str(p), "Hi")
# python manage.py testExercise
Run tests.
manage.py Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.