51Degrees Pipeline for Python

tests.test_cloudrequestengine_cache.TestCloudRequestEngineCache Class Reference

Inheritance diagram for tests.test_cloudrequestengine_cache.TestCloudRequestEngineCache:

[legend]

Collaboration diagram for tests.test_cloudrequestengine_cache.TestCloudRequestEngineCache:

[legend]

Public Member Functions

 pipeline_for (self, client, cache)
 answer_for (self, pipeline)
 requests_for (self, answer)
 found_in_cache (self, entry_text)
 test_an_ordinary_response_is_cached (self)
 test_a_response_with_a_fodid_is_neither_stored_nor_served (self)
 test_a_fodid_below_the_top_level_does_not_count (self)
 test_an_entry_without_a_fodid_is_served (self)
 test_an_entry_holding_a_fodid_is_not_served (self)

Member Function Documentation

◆ answer_for()

tests.test_cloudrequestengine_cache.TestCloudRequestEngineCache.answer_for ( self,
pipeline )
One request through the pipeline. Gives the response text the
request ended with.

◆ found_in_cache()

tests.test_cloudrequestengine_cache.TestCloudRequestEngineCache.found_in_cache ( self,
entry_text )
One request whose cache answers with an entry holding entry_text,
where the cloud service answers with something else. Gives the
response text the request ended with and how many requests reached
the service.

◆ pipeline_for()

tests.test_cloudrequestengine_cache.TestCloudRequestEngineCache.pipeline_for ( self,
client,
cache )
A pipeline holding one Cloud Request Engine with the cache given.
Gives the engine and the pipeline.

◆ requests_for()

tests.test_cloudrequestengine_cache.TestCloudRequestEngineCache.requests_for ( self,
answer )
Two requests with the same evidence, through a cache. Gives how
many reached the cloud service.

◆ test_a_fodid_below_the_top_level_does_not_count()

tests.test_cloudrequestengine_cache.TestCloudRequestEngineCache.test_a_fodid_below_the_top_level_does_not_count ( self)

◆ test_a_response_with_a_fodid_is_neither_stored_nor_served()

tests.test_cloudrequestengine_cache.TestCloudRequestEngineCache.test_a_response_with_a_fodid_is_neither_stored_nor_served ( self)

◆ test_an_entry_holding_a_fodid_is_not_served()

tests.test_cloudrequestengine_cache.TestCloudRequestEngineCache.test_an_entry_holding_a_fodid_is_not_served ( self)

◆ test_an_entry_without_a_fodid_is_served()

tests.test_cloudrequestengine_cache.TestCloudRequestEngineCache.test_an_entry_without_a_fodid_is_served ( self)
The cache really is read, so the test below says something.

◆ test_an_ordinary_response_is_cached()

tests.test_cloudrequestengine_cache.TestCloudRequestEngineCache.test_an_ordinary_response_is_cached ( self)