51Degrees Pipeline for Python

tests.test_datafile_update_http.UpdateServiceTestCase Class Reference

Inheritance diagram for tests.test_datafile_update_http.UpdateServiceTestCase:

[legend]

Collaboration diagram for tests.test_datafile_update_http.UpdateServiceTestCase:

[legend]

Public Member Functions

 setUp (self)
 get (self, reply)
 hold_timers (self)

Public Attributes

 pipeline = RecordingPipeline()
 service = DataFileUpdateService(self.pipeline)
list statuses = []
 data_file = HttpDataFile()
list pending = []
list sent = []

Member Function Documentation

◆ get()

tests.test_datafile_update_http.UpdateServiceTestCase.get ( self,
reply )
Replaces the HTTP request and keeps the headers it was sent.

◆ hold_timers()

tests.test_datafile_update_http.UpdateServiceTestCase.hold_timers ( self)
Replaces the timers, which are kept in self.pending and never run.

◆ setUp()

Member Data Documentation

◆ data_file

tests.test_datafile_update_http.UpdateServiceTestCase.data_file = HttpDataFile()

◆ pending

list tests.test_datafile_update_http.UpdateServiceTestCase.pending = []

◆ pipeline

tests.test_datafile_update_http.UpdateServiceTestCase.pipeline = RecordingPipeline()

◆ sent

list tests.test_datafile_update_http.UpdateServiceTestCase.sent = []

◆ service

tests.test_datafile_update_http.UpdateServiceTestCase.service = DataFileUpdateService(self.pipeline)

◆ statuses

list tests.test_datafile_update_http.UpdateServiceTestCase.statuses = []