Memoru

System Engineering and Programming and IT

Entries from 2018-06-24 to 1 day

unittest

unittest unittest.main()は、unittest.TestCaseを継承した全てのクラスのメソッドのうちtestで始まるテストをテストケースとして実行する。 import unittest import calc from add_sample import add class TestCalc(unittest.TestCase): def test_add2(sel…

shuitl

(sandbox) PS G:\workspace\py\sandbox\standards> python Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import shutil >>…