Revision 4e571185 snf-cyclades-app/synnefo/plankton/tests.py

b/snf-cyclades-app/synnefo/plankton/tests.py
251 251
                                                      {'owner': 'dummy_owner'})
252 252

  
253 253
    @assert_backend_closed
254
    def test_add_image_invalid_name(self, backend):
255
        location = "pithos://uuid/container/name/"
256
        response = self.mypost("images/",
257
                               json.dumps({}),
258
                               'json',
259
                               HTTP_X_IMAGE_META_NAME="\xc2",
260
                               HTTP_X_IMAGE_META_OWNER='dummy_owner',
261
                               HTTP_X_IMAGE_META_LOCATION=location)
262
        self.assertBadRequest(response)
263

  
264
    @assert_backend_closed
254 265
    def test_get_image(self, backend):
255 266
        response = self.myget("images/123")
256 267
        self.assertEqual(response.status_code, 501)

Also available in: Unified diff