def test_should_provide_a_get_or_404_method_on_query_object(self):
        self._replace_flask_abort()
        searched_todo = self.Todo.query.get_or_404('4e038a23e4206650da0000df')
        self.mocker.verify()

        todo = self.Todo(description=u'Start something')
        todo.save()
        searched_todo = self.Todo.query.get_or_404(str(todo.mongo_id))
        self.assertEqual(todo, searched_todo)
Should provide a "get_or_404()" method on Query object
dataset/ETHPy150Open cobrateam/flask-mongoalchemy/tests/test_query.py/FlaskMongoAlchemyQueryTestCase.test_should_provide_a_get_or_404_method_on_query_object