'Return all test items collected from the module.
This writes the source to a python file and runs pytest\'s
collection on the resulting module, returning all test items
contained within.'

def getitems(self, source):

    modcol = self.getmodulecol(source)
    return self.genitems([modcol])
