Skip to content

Instantly share code, notes, and snippets.

@aliceridgway
Created March 28, 2021 12:53
Show Gist options
  • Save aliceridgway/2559033018c0f172df314814609fc79b to your computer and use it in GitHub Desktop.
Save aliceridgway/2559033018c0f172df314814609fc79b to your computer and use it in GitHub Desktop.
A simple Django test
from django.test import TestCase
def add_two_numbers(a, b):
return a + b
class TestExample(TestCase):
def test_add_two_numbers(self):
self.assertEqual(add_two_numbers(2, 2), 4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment