def test_resources_order_in_folder(self):
        api = restplus.Api(self.app)
        ns = api.namespace('test', 'A test namespace')

        @ns.route('/test1')
        class Test1(restplus.Resource):
            @api.doc('test_post_z')
            def post(self):
                pass

        @ns.route('/test2')
        class Test2(restplus.Resource):
            @api.doc('test_post_y')
            def post(self):
                pass

        @ns.route('/test3')
        class Test3(restplus.Resource):
            @api.doc('test_post_x')
            def post(self):
                pass

        data = api.as_postman()

        validate(data, schema)

        self.assertEqual(len(data['requests']), 3)

        self.assertEqual(len(data['folders']), 2)
        folder = data['folders'][1]
        self.assertEqual(folder['name'], 'test')

        expected_order = ('test_post_z', 'test_post_y', 'test_post_x')
        self.assertEqual(len(folder['order']), len(expected_order))

        for request_id, expected in zip(folder['order'], expected_order):
            request = list(filter(lambda r: r['id'] == request_id, data['requests']))[0]
            self.assertEqual(request['name'], expected)
Calculates and returns parameters for sentence boundary detection as
dataset/ETHPy150Open noirbizarre/flask-restplus/tests/test_postman.py/PostmanTestCase.test_resources_order_in_folder--crossover with--dataset/ETHPy150Open nltk/nltk/nltk/tokenize/punkt.py/PunktTrainer.get_params