2022-08-06 23:26:04 +08:00

19 lines
364 B
Python

import unittest
class TestUnittestAssertions(unittest.TestCase):
def testEqual(self):
self.assertEqual(0, 0)
def testTrue(self):
self.assertTrue(True)
def testFalse(self):
self.assertFalse(False)
suit = unittest.TestSuite('test1')
suit.addTest(TestUnittestAssertions())
runner = unittest.TextTestRunner()
runner.run(suit)