From f95f611188387b844f656352af0bea2a18d6ce27 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Mon, 4 Aug 2014 09:19:16 -0300 Subject: [PATCH] added more asserts to the list --- UltiSnips/python.snippets | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/UltiSnips/python.snippets b/UltiSnips/python.snippets index a46720a..918d503 100644 --- a/UltiSnips/python.snippets +++ b/UltiSnips/python.snippets @@ -41,6 +41,14 @@ snippet af "Assert false" self.assertFalse(${1:condition}) 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" # pragma: no cover endsnippet