diff --git a/tests/api_tests.py b/tests/api_tests.py index 1ba6567c..01df2e40 100644 --- a/tests/api_tests.py +++ b/tests/api_tests.py @@ -21,7 +21,6 @@ except ImportError: from string import Template import oscs import osc -import operator import re import pprint @@ -32,11 +31,11 @@ if PY3: else: string_types = basestring, + class OBS: """ Class trying to simulate a simple OBS """ - responses = { } def __init__(self): """ @@ -126,7 +125,7 @@ class OBS: return (200, headers, reply) # It's fixture else: - return (200, headers, _get_fixture_content(reply)) + return (200, headers, self._get_fixture_content(reply)) # All is left is callback function else: return (200, headers, reply(self.responses, request, uri)) @@ -246,6 +245,7 @@ class OBS: response.close() return content + class TestApiCalls(unittest.TestCase): """ Tests for various api calls to ensure we return expected content