4. ● 萌典:測ㄘㄜˋ 試ㄕˋ
○ 對機械、儀器等的性能和安全進行測量。
■ https://www.moedict.tw/#%E6%B8%AC%E8%A9%A6
● Longman: test
○ a process used to discover whether equipment or a
product works correctly, or to discover more about it
■ 用於確認產品或是設備是否正常動作的流程或
■ 用於探索產品或是設備行為的流程
● http://www.ldoceonline.com/dictionary/test_1
24. Method Checks that New in
assertEqual(a, b) a == b
assertNotEqual(a, b) a != b
assertTrue(x) bool(x) is True
assertFalse(x) bool(x) is False
assertIs(a, b) a is b 2.7
assertIsNot(a, b) a is not b 2.7
https://docs.python.org/2/library/unittest.html#module-
Assertions in unittest
25. Method Checks that New in
assertIsNone(x) x is None 2.7
assertIsNotNone(x) x is not None 2.7
assertIn(a, b) a in b 2.7
assertNotIn(a, b) a not in b 2.7
assertIsInstance(a, b) isinstance(a, b) 2.7
assertNotIsInstance(a, b) not isinstance(a, b) 2.7
Assertions in unittest
https://docs.python.org/2/library/unittest.html#module-