Пример #1
0
 def test_construction(self):
     aref = ActionReference(action_id="example:Action-1")
     logger.info(aref.to_xml())
     logger.info(aref.to_dict())
     self.assertTrue(b"example:Action-1" in aref.to_xml())
     self.assertTrue("example:Action-1" in aref.to_json())
Пример #2
0
 def test_construction(self):
     aref = ActionReference(action_id="example:Action-1")
     print aref.to_xml()
     print aref.to_dict()
     self.assertTrue("example:Action-1" in aref.to_xml())
     self.assertTrue("example:Action-1" in aref.to_json())