diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2007-08-24 21:59:45 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2007-08-24 21:59:45 (GMT) |
commit | 178fefb9b5de5aa7db33e691ce2760c54097718b (patch) | |
tree | 99e249eba9f1691cf92e13e63879f0e993f075f1 /Lib/test/test_dumbdbm.py | |
parent | 41cfce9c2bcfe6153ee2b42e05ff1d782d1d3b91 (diff) | |
download | cpython-178fefb9b5de5aa7db33e691ce2760c54097718b.zip cpython-178fefb9b5de5aa7db33e691ce2760c54097718b.tar.gz cpython-178fefb9b5de5aa7db33e691ce2760c54097718b.tar.bz2 |
applies the better dbm and shelve related unittests. bug 1007 from larryhastings
Diffstat (limited to 'Lib/test/test_dumbdbm.py')
-rw-r--r-- | Lib/test/test_dumbdbm.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_dumbdbm.py b/Lib/test/test_dumbdbm.py index efdee75..d5a74fb 100644 --- a/Lib/test/test_dumbdbm.py +++ b/Lib/test/test_dumbdbm.py @@ -89,6 +89,12 @@ class DumbDBMTestCase(unittest.TestCase): keys = self.keys_helper(f) f.close() + def test_write_contains(self): + f = dumbdbm.open(_fname) + f[b'1'] = b'hello' + assert b'1' in f + f.close() + def test_write_write_read(self): # test for bug #482460 f = dumbdbm.open(_fname) |