Alternatively, you can use patch.object . The general form of the call to Mock class is: from unittest import TestCase, mock # mock.Mock ...
確定! 回上一頁