def and_yields(self, *values):
        """Expects the return value of the expectation to be a generator of the
        given values
        """
        def generator():
            for value in values:
                yield value
        self.__expect(Expectation, Invoke(generator))
def and_yields ( self , * values ) : def generator ( ) : for value in values : yield value self . __expect ( Expectation , Invoke ( generator ) )
Expects the return value of the expectation to be a generator of the
        given values