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

def querying_tests.payload_tests.test_get_empty_payload (   self)

Definition at line 275 of file querying_tests.py.

276  payload = self.connection.payload()
277  self.assertTrue(isinstance(payload, self.connection.models["payload"]))
278  self.assertTrue(payload.empty)
279 
def querying_tests.payload_tests.test_get_parent_tags_payload (   self)

Definition at line 280 of file querying_tests.py.

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 
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 
def querying_tests.payload_tests.test_type_parent_tags (   self)

Definition at line 287 of file querying_tests.py.

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