Example #1
0
	def test_str2_20(self):
		print(self.user)
		act=fun("str2",20)
		exp=None
		self.assertEqual(act, exp, "test_str2_20 failed")
Example #2
0
	def test_str1_str2(self):
		print(self.user)
		act=fun("str1","str2")
		exp="str1str2"
		self.assertEqual(act, exp, "test_str1_str2 failed")
Example #3
0
	def test_10_str1(self):
		print(self.user)
		act=fun(10,"str1")
		exp=None
		self.assertEqual(act, exp, "test_10_str1 failed")
Example #4
0
	def test_10_20(self):
		print(self.user)
		act=fun(10,20)
		exp=30
		self.assertEqual(act, exp, "test_10_20 failed")
def testing_fun(a, result):
    assert fun(a) == result
Example #6
0
 def test_10_20(self):
     exp = 30
     act = fun(10, 20)
     self.assertEqual(exp, act, "test_10_20 failed")
Example #7
0
 def test_10_str2(self):
     exp = None
     act = fun(10, "str2")
     self.assertEqual(exp, act, "test_10_str2 failed")