From df5dcba57e17468552367e487f0006dae9afe873 Mon Sep 17 00:00:00 2001 From: Rich Layte Date: Mon, 31 Oct 2011 17:01:25 +0000 Subject: [PATCH] add test and testcase to python --- snippets/python.snippets | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/snippets/python.snippets b/snippets/python.snippets index 0639f21..b6bd11e 100644 --- a/snippets/python.snippets +++ b/snippets/python.snippets @@ -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}