Revision f7d0a71c snf-cyclades-app/synnefo/plankton/tests.py

b/snf-cyclades-app/synnefo/plankton/tests.py
261 261
        self.assertEqual(response.status_code, 204)
262 262
        backend.return_value.unregister.assert_called_once_with('123')
263 263
        backend.return_value._delete.assert_not_called()
264

  
265
    @assert_backend_closed
266
    def test_catch_wrong_api_paths(self, *args):
267
        response = self.myget('nonexistent')
268
        self.assertEqual(response.status_code, 400)
269
        try:
270
            error = json.loads(response.content)
271
        except ValueError:
272
            self.assertTrue(False)

Also available in: Unified diff