Skip to content

Instantly share code, notes, and snippets.

@mildocjr
Created July 13, 2019 20:30
Show Gist options
  • Select an option

  • Save mildocjr/3073ea7763edbfda89831a70eb30fec6 to your computer and use it in GitHub Desktop.

Select an option

Save mildocjr/3073ea7763edbfda89831a70eb30fec6 to your computer and use it in GitHub Desktop.
tests1.py
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