(self)
| 295 | self.assertEqual(Database(c, "foo"), c.get_default_database()) |
| 296 | |
| 297 | def test_get_database_default(self): |
| 298 | c = self.rs_or_single_client( |
| 299 | "mongodb://%s:%d/foo" % (client_context.host, client_context.port), |
| 300 | connect=False, |
| 301 | ) |
| 302 | self.assertEqual(Database(c, "foo"), c.get_database()) |
| 303 | |
| 304 | def test_get_database_default_error(self): |
| 305 | # URI with no database. |
nothing calls this directly
no test coverage detected