How to mock ndb.get_context().urlfetch?
In my tests I would like to mock `urlfetch` provided by NDB package, so no real http requests are made during tests execution.

`urlfetch()` returns `Future`, so it seems that I need to know NDB internals to mock it properly... Also I thought I could mock `google.appengine.api.urlfetch.create_rpc()` somehow... But I didn't make any progress so far...

How can I do this?

Thank you.
How to mock ndb.get_context().urlfetch?
===

In my tests I would like to mock `urlfetch` provided by NDB package, so no real http requests are made during tests execution.

`urlfetch()` returns `Future`, so it seems that I need to know NDB internals to mock it properly... Also I thought I could mock `google.appengine.api.urlfetch.create_rpc()` somehow... But I didn't make any progress so far...

How can I do this?

Thank you.