def test_str2_20(self): print(self.user) act=fun("str2",20) exp=None self.assertEqual(act, exp, "test_str2_20 failed")
def test_str1_str2(self): print(self.user) act=fun("str1","str2") exp="str1str2" self.assertEqual(act, exp, "test_str1_str2 failed")
def test_10_str1(self): print(self.user) act=fun(10,"str1") exp=None self.assertEqual(act, exp, "test_10_str1 failed")
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
def test_10_20(self): exp = 30 act = fun(10, 20) self.assertEqual(exp, act, "test_10_20 failed")
def test_10_str2(self): exp = None act = fun(10, "str2") self.assertEqual(exp, act, "test_10_str2 failed")