@@ -0,0 +1,1828 @@
+import unittest%0A%0Afrom requests import HTTPError%0A%0Afrom kbcstorage.base import Endpoint%0A%0A%0Aclass TestEndpoint(unittest.TestCase):%0A    %22%22%22%0A    Test Endpoint functionality.%0A    %22%22%22%0A    def setUp(self):%0A        self.root = 'https://httpbin.org'%0A        self.token = ''%0A%0A    def test_get(self):%0A        %22%22%22%0A        Simple get works.%0A        %22%22%22%0A        endpoint = Endpoint(self.root, 'get', self.token)%0A        requested_url = endpoint.get(endpoint.base_url)%5B'url'%5D%0A        assert requested_url == 'https://httpbin.org/get'%0A%0A    def test_get_404(self):%0A        %22%22%22%0A        Get inexistent resource raises HTTPError.%0A        %22%22%22%0A        endpoint = Endpoint(self.root, 'get', self.token)%0A        with self.assertRaises(HTTPError):%0A            endpoint.get('%7B%7D/not-a-url'.format(endpoint.base_url))%0A%0A    def test_post(self):%0A        %22%22%22%0A        Simple post works.%0A        %22%22%22%0A        endpoint = Endpoint(self.root, 'post', self.token)%0A        requested_url = endpoint.post(endpoint.base_url)%5B'url'%5D%0A        assert requested_url == 'https://httpbin.org/post'%0A%0A    def test_post_404(self):%0A        %22%22%22%0A        Post to inexistent resource raises HTTPError.%0A        %22%22%22%0A        endpoint = Endpoint(self.root, 'post', self.token)%0A        with self.assertRaises(HTTPError):%0A            endpoint.post('%7B%7D/not-a-url'.format(endpoint.base_url))%0A%0A    def test_delete(self):%0A        %22%22%22%0A        Simple delete works.%0A        %22%22%22%0A        endpoint = Endpoint(self.root, 'delete', self.token)%0A        resp = endpoint.delete(endpoint.base_url)%0A        assert resp is None%0A%0A    def test_delete_404(self):%0A        %22%22%22%0A        Delete inexistent resource raises HTTPError.%0A        %22%22%22%0A        endpoint = Endpoint(self.root, 'delete', self.token)%0A        with self.assertRaises(HTTPError):%0A            endpoint.delete('%7B%7D/not-a-url'.format(endpoint.base_url))%0A

Add tests for the base endpoint HTTP methods