Chapter folders renamed
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#test_mycalc_subtract.py test suite for substract class method
|
||||
import unittest
|
||||
from myunittest.src.mycalc.mycalc import MyCalc
|
||||
|
||||
class MyCalcSubtractTestSuite(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.calc = MyCalc()
|
||||
|
||||
def test_subtract(self):
|
||||
""" test case to validate two positive numbers"""
|
||||
self.assertEqual(5, self.calc.subtract(10 , 5), "should be 5")
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user