/ Published in: Python
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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()