def test_meta_adds_url_map_to_class_that_inherits_from_resource(self):
        class ResourceChild(Resource):
            rules = [Rule('/', methods=['GET'], endpoint='test')]

            def test(self, requet):
                return Response(status=999)

        for rule in ResourceChild.rules:
            self.assertTrue(rule in list(ResourceChild.url_map.iter_rules()))
dataset/ETHPy150Open lvieirajr/mongorest/tests/resource/resource_meta.py/TestResourceMeta.test_meta_adds_url_map_to_class_that_inherits_from_resource/original