Created
March 28, 2021 12:53
-
-
Save aliceridgway/2559033018c0f172df314814609fc79b to your computer and use it in GitHub Desktop.
A simple Django test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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