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