'Dynamically run a named fixture function.
Declaring fixtures via function argument is recommended where possible.
But if you can only decide whether to use another fixture at test
setup time, you may use this function to retrieve it inside a fixture
or test function body.'

def getfixturevalue(self, argname):

    return self._get_active_fixturedef(argname).cached_result[0]
