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