# var1=10
# var2=20
#
# try:
#     if(var1+var2==30):
#         raise Exception
#     print("my result = ",str(var2+var1))
# except Exception:
#     print("this is exception")
# # else:
# import  unittest;
# class testSum(unittest.TestCase):
#     def test_sum(self):
#         self.assertEqual(sum([1, 2, 3]), 6, "Should be 6")
#
#     def test_sum_tuple(self):
#         self.assertEqual(sum((1, 2, 2)), 5, "Should be 6")
#
# if __name__ == '__main__':
#     unittest.main()
