def test_wrong_application_id_verification(self): body_string = LAUNCH_REQUEST_BODY.decode("utf-8") request_dict = json.loads(body_string) request = cek.Request(request_dict) with self.assertRaises(RuntimeError): request.verify_application_id("com.line.wrongApplication")
def test_application_id_verification(self): body_string = LAUNCH_REQUEST_BODY.decode("utf-8") request_dict = json.loads(body_string) request = cek.Request(request_dict) try: request.verify_application_id("com.line.myApplication") except Exception: self.fail("Test for application_id_verification failed!")
def setUp(self): body_string = LAUNCH_REQUEST_BODY.decode("utf-8") request_dict = json.loads(body_string) self.request = cek.Request.create(request_dict)