self.assertEqual(1 // 4, 0) def test_division_by_zero(self): with self.assertRaises(ZeroDivisionError): 1 // 0 if __name__ == "__main__": unittest.main() ...
確定! 回上一頁