#导入测试内置模块
import unittest
#导入要测试的api
from _try_except import condition

#需要继承unittest.TestCase,def函数必须用test_开头
class MyTestCase(unittest.TestCase):
def test_something(self):
self.assertEqual(condition(),1)

posted on 2025-10-31 20:36  偷懒的阿贤  阅读(0)  评论(0)    收藏  举报