@@ -0,0 +1,485 @@
+%22%22%22Test Api class%22%22%22%0A%0Afrom unittest import mock%0A%0Aimport apispec%0A%0Afrom flask_rest_api import Api%0A%0A%0Aclass TestApi():%0A    %22%22%22Test Api class%22%22%22%0A%0A    def test_api_definition(self, app, schemas):%0A        DocSchema = schemas.DocSchema%0A        api = Api(app)%0A        with mock.patch.object(apispec.APISpec, 'definition') as mock_def:%0A            ret = api.definition('Document')(DocSchema)%0A        assert ret is DocSchema%0A        mock_def.assert_called_once_with('Document', schema=DocSchema)%0A

Add test for Api.definition()