Revision cda71050 snf-cyclades-app/synnefo/plankton/tests.py
b/snf-cyclades-app/synnefo/plankton/tests.py | ||
---|---|---|
33 | 33 |
|
34 | 34 |
import json |
35 | 35 |
|
36 |
from django.test import TestCase |
|
37 |
|
|
38 |
from contextlib import contextmanager |
|
39 | 36 |
from mock import patch |
40 | 37 |
from functools import wraps |
41 | 38 |
from copy import deepcopy |
42 |
from snf_django.utils.testing import astakos_user, BaseAPITest
|
|
39 |
from snf_django.utils.testing import BaseAPITest |
|
43 | 40 |
|
44 | 41 |
|
45 | 42 |
FILTERS = ('name', 'container_format', 'disk_format', 'status', 'size_min', |
... | ... | |
130 | 127 |
return wrapper |
131 | 128 |
|
132 | 129 |
|
133 |
@patch("synnefo.plankton.utils.ImageBackend")
|
|
130 |
@patch("synnefo.plankton.backend.ImageBackend")
|
|
134 | 131 |
class PlanktonTest(BaseAPITest): |
135 | 132 |
@assert_backend_closed |
136 | 133 |
def test_list_images(self, backend): |
Also available in: Unified diff