self.testbed.init_datastore_v3_stub(consistency_policy=datastore_stub_util.PseudoRandomHRConsistencyPolicy(probability=0)This allows you to tweak what you're testing - e.g. Just to present everything as consistent stuff for ease of testing, or totally eventual stuff to guarantee that the code you're testing is using keys/transactions etc correctly.
They're really the only two scenarios that are interesting for most application unit tests - no one wants intermittent failing tests in the build process.