You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
375 B
Python
18 lines
375 B
Python
from calendar import c
|
|
import unittest
|
|
from py_project.calculator import Calculator
|
|
|
|
|
|
class TestCalculator(unittest.TestCase):
|
|
def test_sum(self):
|
|
calc = Calculator()
|
|
self.assertEqual(calc.add(3, 4), 7)
|
|
|
|
# def test_sub(self):
|
|
# calc = Calculator()
|
|
# self.assertEqual(calc.sub(4, 2), 2)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|