def test_resource(self):
        s = self.app.root
        self.assertEqual(sorted([t.name for t in s.tags]), sorted(['store', 'user', 'pet']))

        p = self.app.root.paths
        self.assertEqual(sorted(p.keys()), sorted([
            '/api/user/createWithArray',
            '/api/store/order',
            '/api/user/login',
            '/api/user',
            '/api/pet',
            '/api/pet/findByTags',
            '/api/pet/findByStatus',
            '/api/store/order/{orderId}',
            '/api/user/logout',
            '/api/pet/uploadImage',
            '/api/user/createWithList',
            '/api/user/{username}',
            '/api/pet/{petId}'
        ]))
Resource -> Tag, Operation
dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/tests/v1_2/test_upgrade.py/Swagger_Upgrade_TestCase.test_resource