'Returns tests plugins, after loading and caching them if need be'

def _get_tests(self):

    if (self._tests is not None):
        return self._tests.copy()
    plugins = [x for x in self._test_loader.all()]
    self._tests = dict()
    for fp in plugins:
        self._tests.update(fp.tests())
    return self._tests.copy()
