# Path: paystackapi/misc.py
# class Misc(PayStackBase):
# 	
# 	@classmethod
# 	def list_banks(cls):
# 		"""Static method defined to list banks.
# 			Args:
# 				No argument required.
# 			Returns:
# 				Json data from paystack API.
# 		"""
# 		return cls().requests.get('bank')
# 
# 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.misc import Misc
from paystackapi.tests.base_test_case import BaseTestCase



class TestMisc(BaseTestCase):
	
	@httpretty.activate
	def test_list_banks(self):
		httpretty.register_uri(
			httpretty.GET,
			self.endpoint_url("/bank"),
			content_type='text/json',
			body='{"status": true, "message": "Banks retrieved", "data": []}',
			status=200,
		)
		

# Path: paystackapi/misc.py
# class Misc(PayStackBase):
# 	
# 	@classmethod
# 	def list_banks(cls):
# 		"""Static method defined to list banks.
# 			Args:
# 				No argument required.
# 			Returns:
# 				Json data from paystack API.
# 		"""
# 		return cls().requests.get('bank')
# 
# 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_misc.py
import httpretty
from paystackapi.misc import Misc
from paystackapi.tests.base_test_case import BaseTestCase




class TestMisc(BaseTestCase):
	
	@httpretty.activate
	def test_list_banks(self):
		httpretty.register_uri(
			httpretty.GET,
			self.endpoint_url("/bank"),
			content_type='text/json',
			body='{"status": true, "message": "Banks retrieved", "data": []}',
			status=200,
		)
		

		response = Misc.list_banks()