# Path: paystackapi/verification.py
# class Verification(PayStackBase):
#     """docstring for Verification."""
# 
#     @classmethod
#     def verify_bvn(cls, bvn):
#         """
#         Verify BVN
# 
#         Args:
#             bvn:        customer's BVN number
# 
#         Returns:
#             Json data from paystack API.
#         """
#         return cls().requests.get(f"bank/resolve_bvn/{bvn}")
# 
#     @classmethod
#     def verify_account(cls, **kwargs):
#         """
#         Verify account
# 
#         Args:
#             account_number:     customer's account number
#             bank_code:          customer's bank code
# 
#         Returns:
#             Json data from paystack API.
#         """
#         return cls().requests.get("bank/resolve", qs=kwargs,)
# 
#     @classmethod
#     def verify_card_bin(cls, card_bin):
#         """
#         Verify card bin
# 
#         Args:
#             card_bin:           customer's card bin number
# 
#         Returns:
#             Json data from paystack API.
#         """
#         return cls().requests.get(f"decision/bin/{card_bin}")
# 
#     @classmethod
#     def verify_phone(cls, **kwargs):
#         """
#         Verify customer phone number
# 
#         Args:
#             verification_type:      phone verification type
#             phone:                  customer's phone number
#             callback_url:           url to receive verification details
# 
#         Returns:
#             Json data from paystack API.
#         """
#         return cls().requests.post('verifications', data=kwargs)
# 
# Path: paystackapi/tests/base_test_case.py
# class BaseTestCase(unittest.TestCase):
# 		
# 	def endpoint_url(self, path):
# 		if path[0] == '/':
# 			return 'https://api.paystack.co{}'.format(path)
# 		return 'https://api.paystack.co/{}'.format(path)


import httpretty
from paystackapi.verification import Verification
from paystackapi.tests.base_test_case import BaseTestCase

        response = Verification.verify_bvn(bvn='01234567689')
        self.assertTrue(response['status'])

    @httpretty.activate
    def test_verify_account(self):
        """Method defined to test account number verification."""
        httpretty.register_uri(
            httpretty.GET,
            self.endpoint_url("/bank/resolve?account_number=123456&bank_code=093"),
            content_type='text/json',
            body='{"status": true, "contributors": true}',
            status=200,
        )

        response = Verification.verify_account(
            account_number='123456', bank_code='093')
        self.assertTrue(response['status'])

    @httpretty.activate
    def test_verify_card_bin(self):
        """Method defined to test card bin verification."""
        httpretty.register_uri(
            httpretty.GET,
            self.endpoint_url("/decision/bin/1234565"),
            content_type='text/json',
            body='{"status": true, "contributors": true}',
            status=200,
        )


# Path: paystackapi/verification.py
# class Verification(PayStackBase):
#     """docstring for Verification."""
# 
#     @classmethod
#     def verify_bvn(cls, bvn):
#         """
#         Verify BVN
# 
#         Args:
#             bvn:        customer's BVN number
# 
#         Returns:
#             Json data from paystack API.
#         """
#         return cls().requests.get(f"bank/resolve_bvn/{bvn}")
# 
#     @classmethod
#     def verify_account(cls, **kwargs):
#         """
#         Verify account
# 
#         Args:
#             account_number:     customer's account number
#             bank_code:          customer's bank code
# 
#         Returns:
#             Json data from paystack API.
#         """
#         return cls().requests.get("bank/resolve", qs=kwargs,)
# 
#     @classmethod
#     def verify_card_bin(cls, card_bin):
#         """
#         Verify card bin
# 
#         Args:
#             card_bin:           customer's card bin number
# 
#         Returns:
#             Json data from paystack API.
#         """
#         return cls().requests.get(f"decision/bin/{card_bin}")
# 
#     @classmethod
#     def verify_phone(cls, **kwargs):
#         """
#         Verify customer phone number
# 
#         Args:
#             verification_type:      phone verification type
#             phone:                  customer's phone number
#             callback_url:           url to receive verification details
# 
#         Returns:
#             Json data from paystack API.
#         """
#         return cls().requests.post('verifications', data=kwargs)
# 
# Path: paystackapi/tests/base_test_case.py
# class BaseTestCase(unittest.TestCase):
# 		
# 	def endpoint_url(self, path):
# 		if path[0] == '/':
# 			return 'https://api.paystack.co{}'.format(path)
# 		return 'https://api.paystack.co/{}'.format(path)


# Path: paystackapi/tests/test_verification.py
import httpretty
from paystackapi.verification import Verification
from paystackapi.tests.base_test_case import BaseTestCase


        response = Verification.verify_bvn(bvn='01234567689')
        self.assertTrue(response['status'])

    @httpretty.activate
    def test_verify_account(self):
        """Method defined to test account number verification."""
        httpretty.register_uri(
            httpretty.GET,
            self.endpoint_url("/bank/resolve?account_number=123456&bank_code=093"),
            content_type='text/json',
            body='{"status": true, "contributors": true}',
            status=200,
        )

        response = Verification.verify_account(
            account_number='123456', bank_code='093')
        self.assertTrue(response['status'])

    @httpretty.activate
    def test_verify_card_bin(self):
        """Method defined to test card bin verification."""
        httpretty.register_uri(
            httpretty.GET,
            self.endpoint_url("/decision/bin/1234565"),
            content_type='text/json',
            body='{"status": true, "contributors": true}',
            status=200,
        )


        response = Verification.verify_card_bin(card_bin='1234565')