示例#1
0
 def setUp(self):  # setUp U is in uppercase
     self.str_obj = msstring.MsName("Life", "Good")
示例#2
0
# author: Mahmud Ahsan
# code: https://github.com/mahmudahsan/thinkdiff
# blog: http://thinkdiff.net
# http://pythonbangla.com
# MIT License

# --------------------------
#      Unit Test
# --------------------------
'''
mspack.msmath and mspack.msstring modules are tested by 
chapter2_test.py file.
'''

from mspack import msmath
from mspack import msstring

print("Sum: ", msmath.sum(10, 20))
print("Division: ", msmath.division(25, 5))
print("Full Name: ", msstring.MsName("Mahmud", "Ahsan").full_name())
示例#3
0
 def test_full_name(self):
     name = msstring.MsName("Life", "Good").full_name()
     self.assertEqual("Life Good", name)