Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

“Python unittest Framework

import unittest

class DefaultWidgetSizeTestCase(unittest.TestCase):
    def test_default_widget_size(self):
        widget = Widget('The widget')
        self.assertEqual(widget.size(), (50, 50))
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #unittest #Framework
ADD COMMENT
Topic
Name
4+8 =