CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
 
def test_get_parent_tags_payload
 
def test_get_payload
 
def test_type_parent_tags
 
- Public Member Functions inherited from querying_tests.querying_tests
def setUp
 
def tearDown
 
def test_check_connection
 

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  def test_get_empty_payload(self):
277  payload = self.connection.payload()
278  self.assertTrue(isinstance(payload, self.connection.models["payload"]))
279  self.assertTrue(payload.empty)
def querying_tests.payload_tests.test_get_parent_tags_payload (   self)

Definition at line 280 of file querying_tests.py.

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

Definition at line 269 of file querying_tests.py.

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

Definition at line 287 of file querying_tests.py.

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