Test base REST Client

This commit is contained in:
Cameron Yick
2017-08-28 22:15:53 -04:00
parent 91900fac0d
commit 1127113ef4
3 changed files with 74 additions and 0 deletions

View File

@@ -20,6 +20,12 @@ class RestClient(object):
"""
self._config = config
# The child class should override these properties or else the
# restclient won't work. Reevalute whether to do this as an abstract
# base class so it doesn't get used by itself.
self._headers = {}
self._base_url = ""
if config.get('session'):
self._session = requests.Session()
else: