django-categories/example/simpletext/tests.py
pre-commit-ci[bot] c3e2f2858c
Some checks are pending
Run Tox tests / build (3.10) (push) Waiting to run
Run Tox tests / build (3.11) (push) Waiting to run
Run Tox tests / build (3.12) (push) Waiting to run
Run Tox tests / build (3.7) (push) Waiting to run
Run Tox tests / build (3.8) (push) Waiting to run
Run Tox tests / build (3.9) (push) Waiting to run
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2026-03-16 17:39:56 +00:00

24 lines
511 B
Python

"""
This file demonstrates two different styles of tests (one doctest and one
unittest). These will both pass when you run "manage.py test".
Replace these with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.assertEqual(1 + 1, 2)
__test__ = {"doctest": """
Another way to test that 1 + 1 is equal to 2.
>>> 1 + 1 == 2
True
"""}