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 262 of file querying_tests.py.

Member Function Documentation

def querying_tests.payload_tests.test_get_empty_payload (   self)

Definition at line 274 of file querying_tests.py.

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

Definition at line 279 of file querying_tests.py.

280  payload_hash = "00172cd62d8abae41915978d815ae62cc08ad8b9"
281  payload = self.connection.payload(hash=payload_hash)
282  self.assertTrue(payload != None)
283  parent_tags = payload.parent_tags()
284  self.assertTrue(parent_tags != None)
285 
def querying_tests.payload_tests.test_get_payload (   self)

Definition at line 268 of file querying_tests.py.

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

Definition at line 286 of file querying_tests.py.

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