Return to Snippet

Revision: 19319
at October 21, 2009 10:35 by manatlan


Initial Code
import unittest

class TestSequenceFunctions(unittest.TestCase):

    def setUp(self):        pass
    def tearDown(self):     pass

    def test_assert(self):
        self.assert_( 1==1 )

    def test_exceptions(self):
        self.assertRaises( ZeroDivisionError, lambda: 12/0 )

if __name__ == "__main__":
    unittest.main()

Initial URL

                                

Initial Description

                                

Initial Title
Python unittests

Initial Tags
python

Initial Language
Python