def test_set_state(self):
     assert str(PNSetStateResult({})) == "New state {} successfully set"
Esempio n. 2
0
 def create_response(self, envelope):
     if 'status' in envelope and envelope['status'] is 200:
         return PNSetStateResult(envelope['payload'])
     else:
         return envelope