Revision a3accf03 snf-cyclades-app/synnefo/api/test/images.py

b/snf-cyclades-app/synnefo/api/test/images.py
213 213
        mimage.return_value.unregister.assert_called_once_with('42')
214 214
        mimage.return_value._delete.assert_not_called('42')
215 215

  
216
    @assert_backend_closed
217
    def test_catch_wrong_api_paths(self, *args):
218
        response = self.myget('nonexistent')
219
        self.assertEqual(response.status_code, 400)
220
        try:
221
            error = json.loads(response.content)
222
        except ValueError:
223
            self.assertTrue(False)
224

  
216 225

  
217 226
@patch('synnefo.plankton.backend.ImageBackend')
218 227
class ImageMetadataAPITest(ComputeAPITest):

Also available in: Unified diff