- くだすれPython(超初心者用) その32©2ch.net
858 :デフォルトの名無しさん[sage]:2017/03/18(土) 18:40:35.06 ID:vEldA4mj - python3のクラスで
import unittest class TestCap(unittest.TestCase): def test_one_word(self): text = 'Duck' self.assertEqual(text, 'Duck') の場合self.assertEqualはsuper()で呼び出しちゃダメなの? そもそもどうしてselfが出てくるの?
|