def test_get_user_info(self, access_token, secret_key): client = Client(access_token, secret_key) user_info = client.get_user_info() self.assertIsInstance(user_info.mobileInfo["userName"], str) self.assertIsInstance(user_info.mobileInfo["phoneNumber"], str) self.assertIsInstance(user_info.bankInfo["depositor"], str) self.assertIsInstance(user_info.bankInfo["accountNumber"], str) self.assertIsInstance(user_info.emailInfo["email"], str)
def test_get_user_info_with_mock(self, mock_request): _ = mock_request client = Client("access_token", "secret_key") user_info = client.get_user_info() self.assertIsInstance(user_info.mobileInfo["userName"], str) self.assertIsInstance(user_info.mobileInfo["phoneNumber"], str) self.assertIsInstance(user_info.bankInfo["depositor"], str) self.assertIsInstance(user_info.bankInfo["accountNumber"], str) self.assertIsInstance(user_info.emailInfo["email"], str)