(self)
| 72 | self.assertRaises(dbm.error, dbm.open, _fname) |
| 73 | |
| 74 | def test_anydbm_creation(self): |
| 75 | f = dbm.open(_fname, 'c') |
| 76 | self.assertEqual(list(f.keys()), []) |
| 77 | for key in self._dict: |
| 78 | f[key.encode("ascii")] = self._dict[key] |
| 79 | self.read_helper(f) |
| 80 | f.close() |
| 81 | |
| 82 | def test_anydbm_creation_n_file_exists_with_invalid_contents(self): |
| 83 | # create an empty file |
nothing calls this directly
no test coverage detected