Testing Object-oriented Programs(Chapter 11 of Python 3 Object Oriented Programm
时间:2010-09-06 来源:Ray Z
1 import unittest
2
3 class CheckNumbers(unittest.TestCase):
4 def test_int_float(self):
5 self.assertEquals(1, 1.0)
6
7 if __name__ == "__main__":
8 unittest.main()
2
3 class CheckNumbers(unittest.TestCase):
4 def test_int_float(self):
5 self.assertEquals(1, 1.0)
6
7 if __name__ == "__main__":
8 unittest.main()
相关阅读 更多 +