Commit 01c8e3a9 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

cleanup.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39558 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 34bab497
...@@ -165,7 +165,7 @@ class TestMemcachedTool(ERP5TypeTestCase): ...@@ -165,7 +165,7 @@ class TestMemcachedTool(ERP5TypeTestCase):
del tested_dict[tested_key] del tested_dict[tested_key]
self.assertTrue(tested_dict[tested_key] is None) self.assertTrue(tested_dict[tested_key] is None)
def test_05_deteteValueAndCommit(self): def test_05_deleteValueAndCommit(self):
""" """
Tests that deleted values are actually deleted in memcached. Tests that deleted values are actually deleted in memcached.
""" """
...@@ -176,14 +176,7 @@ class TestMemcachedTool(ERP5TypeTestCase): ...@@ -176,14 +176,7 @@ class TestMemcachedTool(ERP5TypeTestCase):
self.assertTrue(tested_dict[tested_key] == tested_value) self.assertTrue(tested_dict[tested_key] == tested_value)
del tested_dict[tested_key] del tested_dict[tested_key]
transaction.commit() transaction.commit()
try: self.assertRaises(KeyError, tested_dict.__getitem__, tested_key)
dummy = tested_dict[tested_key]
except KeyError:
pass
except:
self.fail('Wrong error type is raised when key is not found.')
else:
self.fail('No error is raised when key is not found.')
def test_06_checkNonStringKeyFails(self): def test_06_checkNonStringKeyFails(self):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment