summaryrefslogtreecommitdiffstats
path: root/vim/snippets/python.snippets
blob: fc0dd70bb14fcd6cd66ad8804d4cf317212863a8 (plain) (blame)
1
2
3
4
5
6
7
8
snippet test
	import unittest

	${1}

	class ${2:`join(map(split(matchstr(expand("%"), '^t\(ests\?\)\?/\zs.*\ze\.py'), '_'), 'toupper(v:val[0]) . v:val[1:]'), '')`}(unittest.TestCase):
		def test_${3}(self):
	        	${0}