summaryrefslogtreecommitdiff
path: root/python-mode/assertRaises.with
diff options
context:
space:
mode:
Diffstat (limited to 'python-mode/assertRaises.with')
-rw-r--r--python-mode/assertRaises.with6
1 files changed, 6 insertions, 0 deletions
diff --git a/python-mode/assertRaises.with b/python-mode/assertRaises.with
new file mode 100644
index 0000000..c97807e
--- /dev/null
+++ b/python-mode/assertRaises.with
@@ -0,0 +1,6 @@
+# -*- mode: snippet -*-
+# name: assertRaises
+# key: ar
+# --
+with self.assertRaises(${1:Exception}):
+ $0