def METHOD_NAME(self):
    rf = RESTFormatter(config=self.config.Webtools)
    url = self.urlbase +'gen'
    # gen method from DummyRESTModel will return this generator
    gen = ({'idx':i} for i in range(10))
    # the WMCore should convert it into list regardless of accept type
    data = rf.json(gen)
    methodTest('GET', url, accept='application/json',
                     output={'code':200, 'data':data})
    methodTest('GET', url, accept='*/*',
                     output={'code':200, 'data':data})