CMS 3D CMS Logo

List of all members | Public Member Functions
querying_tests.payload_tests Class Reference
Inheritance diagram for querying_tests.payload_tests:
querying_tests.querying_tests

Public Member Functions

def test_get_empty_payload (self)
 
def test_get_parent_tags_payload (self)
 
def test_get_payload (self)
 
def test_type_parent_tags (self)
 
- Public Member Functions inherited from querying_tests.querying_tests
def setUp (self)
 
def tearDown (self)
 
def test_check_connection (self)
 

Additional Inherited Members

- Public Attributes inherited from querying_tests.querying_tests
 connection
 
 global_tag_name
 

Detailed Description

Payloads

Definition at line 263 of file querying_tests.py.

Member Function Documentation

◆ test_get_empty_payload()

def querying_tests.payload_tests.test_get_empty_payload (   self)

Definition at line 275 of file querying_tests.py.

275  def test_get_empty_payload(self):
276  payload = self.connection.payload()
277  self.assertTrue(isinstance(payload, self.connection.models["payload"]))
278  self.assertTrue(payload.empty)
279 

References data_sources_tests.data_sources_tests.connection, payload_tests.payload_tests.connection, data_formats_tests.data_formats_tests.connection, querying_tests.querying_tests.connection, querying.factory.connection, and jets_cff.payload.

◆ test_get_parent_tags_payload()

def querying_tests.payload_tests.test_get_parent_tags_payload (   self)

Definition at line 280 of file querying_tests.py.

280  def test_get_parent_tags_payload(self):
281  payload_hash = "00172cd62d8abae41915978d815ae62cc08ad8b9"
282  payload = self.connection.payload(hash=payload_hash)
283  self.assertTrue(payload != None)
284  parent_tags = payload.parent_tags()
285  self.assertTrue(parent_tags != None)
286 

References data_sources_tests.data_sources_tests.connection, payload_tests.payload_tests.connection, data_formats_tests.data_formats_tests.connection, querying_tests.querying_tests.connection, querying.factory.connection, and jets_cff.payload.

◆ test_get_payload()

def querying_tests.payload_tests.test_get_payload (   self)

Definition at line 269 of file querying_tests.py.

269  def test_get_payload(self):
270  # hard coded payload for now
271  payload_hash = "00172cd62d8abae41915978d815ae62cc08ad8b9"
272  payload = self.connection.payload(hash=payload_hash)
273  self.assertTrue(isinstance(payload, self.connection.models["payload"]))
274 

References data_sources_tests.data_sources_tests.connection, payload_tests.payload_tests.connection, data_formats_tests.data_formats_tests.connection, querying_tests.querying_tests.connection, querying.factory.connection, and jets_cff.payload.

◆ test_type_parent_tags()

def querying_tests.payload_tests.test_type_parent_tags (   self)

Definition at line 287 of file querying_tests.py.

287  def test_type_parent_tags(self):
288  payload_hash = "00172cd62d8abae41915978d815ae62cc08ad8b9"
289  payload = self.connection.payload(hash=payload_hash)
290  self.assertTrue(payload != None)
291  parent_tags = payload.parent_tags()
292  self.assertTrue(isinstance(parent_tags, data_sources.json_list))
293 

References data_sources_tests.data_sources_tests.connection, payload_tests.payload_tests.connection, data_formats_tests.data_formats_tests.connection, querying_tests.querying_tests.connection, querying.factory.connection, and jets_cff.payload.

jets_cff.payload
payload
Definition: jets_cff.py:32
data_sources.json_list
Definition: data_sources.py:175