(self)
| 72 | |
| 73 | @client_context.require_connection |
| 74 | def test_round_trip(self): |
| 75 | db = self.client.get_database( |
| 76 | "pymongo_test", codec_options=CodecOptions(document_class=RawBSONDocument) |
| 77 | ) |
| 78 | db.test_raw.insert_one(self.document) |
| 79 | result = db.test_raw.find_one(self.document["_id"]) |
| 80 | assert result is not None |
| 81 | self.assertIsInstance(result, RawBSONDocument) |
| 82 | self.assertEqual(dict(self.document.items()), dict(result.items())) |
| 83 | |
| 84 | @client_context.require_connection |
| 85 | def test_round_trip_raw_uuid(self): |
nothing calls this directly
no test coverage detected