summaryrefslogtreecommitdiffstats
path: root/vim/snippets/python.snippets
blob: 48871677b139fe4d4f11caf41ab1c47ec9743fa0 (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):
                        ${4}