kde-extraapps/kdevelop/file_templates/testing/python_pyunit/class.py
2015-07-26 14:23:17 +03:00

35 lines
No EOL
541 B
Python

{% load kdev_filters %}
{% block license_header %}
{% if license %}
#
{{ license|lines_prepend:"# " }}
#
{% endif %}
{% endblock license_header %}
import unittest
class {{ name }}(unittest.TestCase):
def setUp(self):
# Called before the first testfunction is executed
pass
def tearDown(self):
# Called after the last testfunction was executed
pass
{% for case in testCases %}
def test_{{ case }}(self):
pass
{% endfor %}
if __name__ == "__main__":
unittest.main()