Created
July 13, 2019 20:30
-
-
Save mildocjr/3073ea7763edbfda89831a70eb30fec6 to your computer and use it in GitHub Desktop.
tests1.py
This file contains hidden or 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
| import unittest | |
| def add(x, y): | |
| return x + y | |
| class TestAddFunction(unittest.TestCase): | |
| def test_add_numbers(self): | |
| result = add(2, 2) | |
| self.assertEqual(result, 4, "Whoops") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment