def METHOD_NAME(self, mock_query):
    mock_query.return_value = ResultSet(rows=[("some_db",)])
    result = self.engine.get_all_databases()
    self.assertIsInstance(result, ResultSet)
    self.assertEqual(result.rows, ["some_db"])