import unittest
      
      class MyUnitTest(unittest.TestCase):
        def setUp(self):
          pass
        def tearDown(self):
          pass
        def test_function_name(self):
          self.assertEqual(1, 1)
      if __name__ == '__main__':
        unittest.main()
      Python language logo

      Generic unittest file

      testing
      Python public recipes

      Generic unittest class skeleton

      Shortcut: unittest.skeleton

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.