Browse Source

added more asserts to the list

master
Julio Biason 10 years ago
parent
commit
f95f611188
  1. 8
      UltiSnips/python.snippets

8
UltiSnips/python.snippets

@ -41,6 +41,14 @@ snippet af "Assert false"
self.assertFalse(${1:condition}) self.assertFalse(${1:condition})
endsnippet endsnippet
snippet ar "Assert raises"
self.assertRaises(${1:exception}, ${2:function}, ${3:arguments})
endsnippet
snippet ai "Assert in"
self.assertIn(${1:needle}, ${2:haystack})
endsnippet
snippet nocover "Remove the block from the coverage" snippet nocover "Remove the block from the coverage"
# pragma: no cover # pragma: no cover
endsnippet endsnippet

Loading…
Cancel
Save