ããã¹ãã³ã¼ãã¯å¤§åã ãããã¨ãã話ã¯è¯ããã¾ããã»ã»ã» æ¥ããããªããããã¹ãã³ã¼ãã®æ¸ãæ¹ãç¥ããªãã®ã§ãåºç¤ãã調ã¹ã¦ã¿ã¾ãã åèã«ããã®ã¯ããã http://www.python.jp/doc/2.5/lib/module-unittest.html ï¼ï¼ã¾ããunittestãimportãã¦ãunittest.TestCaseãç¶æ¿ããã¯ã©ã¹ãä½æãã¾ãã ï¼ï¼ãã¹ããè¡ãåã«ããªãã¸ã§ã¯ãã®ä½æãªã©ã®äºåå¦çãè¡ãããå ´åã¯ã ãsetUpãã¨ããã¡ã½ããã宣è¨ãã¾ãã ï¼ï¼ãã¹ãã¡ã½ãããä½æãã¾ãã ï¼ï¼unittest.main()ãå¼ã³åºãã¨ããã¹ãã¯ã©ã¹ã®å®è¡ãéå§ããã¾ãã ã»ã»ã»ã¨ãã£ã¦ãè¯ãããããªãã®ã§ããã é¢æ°åã表示ããã ãã® ãã¹ãã±ã¼ã¹ãä½æãã¦åããã¦ã¿ã¾ãã # -*- coding:utf-8 -*- import unittest #un
{{#tags}}- {{label}}
{{/tags}}