summaryrefslogtreecommitdiff
path: root/templates/python/context_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'templates/python/context_tests.py')
-rw-r--r--templates/python/context_tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/python/context_tests.py b/templates/python/context_tests.py
index 9db6bd0..24d8f51 100644
--- a/templates/python/context_tests.py
+++ b/templates/python/context_tests.py
@@ -17,6 +17,12 @@ class ContextTests(unittest.TestCase):
ctx = Context()
self.assertFalse("foo" in ctx)
+ def test_no_longer_contains_item(self):
+ ctx = Context()
+ ctx["foo"] = "bar"
+ del ctx["foo"]
+ self.assertFalse("foo" in ctx)
+
def test_contains_item(self):
ctx = Context()
ctx["foo"] = "bar"