From 5f7416e859ad79af11423fc9ef5fa7e31b43b693 Mon Sep 17 00:00:00 2001 From: Alberto Planas Date: Tue, 25 Feb 2014 10:02:12 +0100 Subject: [PATCH] Fix missing self --- tests/api_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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