Exemplo n.º 1
0
 def test_verification_response_message(self):
     message = 'Some message here'
     response = VerificationResponse(message=message, verification_key='abc')
     self.assertTrue(response.is_initialized())
     self.assertEqual(response.code, 200)
     self.assertEqual(response.message, message)
     self.assertEqual(response.verification_key, 'abc')
Exemplo n.º 2
0
 def test_verification_response_message(self):
     message = 'Some message here'
     response = VerificationResponse(message=message,
                                     verification_key='abc')
     self.assertTrue(response.is_initialized())
     self.assertEqual(response.code, 200)
     self.assertEqual(response.message, message)
     self.assertEqual(response.verification_key, 'abc')
Exemplo n.º 3
0
 def test_verification_response_code(self):
     response = VerificationResponse(code=500, verification_key='abc')
     self.assertTrue(response.is_initialized())
     self.assertEqual(response.code, 500)
     self.assertEqual(response.message, None)
     self.assertEqual(response.verification_key, 'abc')
Exemplo n.º 4
0
 def test_verification_response_empty(self):
     response = VerificationResponse()
     self.assertFalse(response.is_initialized())
Exemplo n.º 5
0
 def test_verification_response_empty(self):
     response = VerificationResponse()
     self.assertFalse(response.is_initialized())
Exemplo n.º 6
0
 def test_verification_response_code(self):
     response = VerificationResponse(code=500, verification_key='abc')
     self.assertTrue(response.is_initialized())
     self.assertEqual(response.code, 500)
     self.assertEqual(response.message, None)
     self.assertEqual(response.verification_key, 'abc')