下面我們使用mock物件在單元測試中分別測試訪問正常和訪問不正常的情況。 #!/usr/bin/env python # -*- coding: utf-8 -*- import unittest import mock ...
確定! 回上一頁