Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import unittest
- import sys
- sys.path.append('..')
- import calc
- class TestCalc(unittest.TestCase):
- def test_add(self):
- self.assertEqual(calc.add(1, 2), 3)
- if __name__ == '__main__':
- unittest.main()
Add Comment
Please, Sign In to add comment