add test and testcase to python

This commit is contained in:
Rich Layte 2011-10-31 17:01:25 +00:00
parent 354ff5427c
commit df5dcba57e

View File

@ -145,3 +145,13 @@ snippet "
"""
${1:doc}
"""
# test function/method
snippet test
def test_${1:description}(${2:`indent('.') ? 'self' : ''`}):
${3:pass}
# test case
snippet testcase
class ${1:ExampleCase}(unittest.TestCase):
def test_${2:description}(self):
${3:pass}