(self)
| 375 | self.assertEqual(b"hello world", GridOut(self.db.fs, a._id).read()) |
| 376 | |
| 377 | def test_close(self): |
| 378 | f = GridIn(self.db.fs) |
| 379 | f.close() |
| 380 | with self.assertRaises(ValueError): |
| 381 | f.write("test") |
| 382 | f.close() |
| 383 | |
| 384 | def test_closed(self): |
| 385 | f = GridIn(self.db.fs, chunkSize=5) |