Revision 4e6f9904 api/tests.py

b/api/tests.py
287 287
        self.assertEqual(image_from_api['serverId'], image_from_db.sourcevm and image_from_db.sourcevm.id or "")
288 288
        self.assertEqual(image_from_api['size'], image_from_db.size)
289 289
        self.assertEqual(image_from_api['status'], image_from_db.state)
290
        self.assertEqual(image_from_api['description'], image_from_db.description)
290
        self.assertEqual(image_from_api['metadata']['meta']['key']['description'], image_from_db.description)
291 291
        self.assertTrue(response.status_code in [200,203])
292 292

  
293 293

  
......
305 305
            self.assertEqual(image_from_api['serverId'], image_from_db.sourcevm and image_from_db.sourcevm.id or "")
306 306
            self.assertEqual(image_from_api['size'], image_from_db.size)
307 307
            self.assertEqual(image_from_api['status'], image_from_db.state)
308
            self.assertEqual(image_from_api['description'], image_from_db.description)
308
            self.assertEqual(image_from_api['metadata']['meta']['key']['description'], image_from_db.description)
309 309

  
310 310
        for image_from_api in images_from_api:
311 311
            image_from_db = Image.objects.get(id=image_from_api['id'])
......
314 314
            self.assertEqual(image_from_api['serverId'], image_from_db.sourcevm and image_from_db.sourcevm.id or "")
315 315
            self.assertEqual(image_from_api['size'], image_from_db.size)
316 316
            self.assertEqual(image_from_api['status'], image_from_db.state)
317
            self.assertEqual(image_from_api['description'], image_from_db.description)
317
            self.assertEqual(image_from_api['metadata']['meta']['key']['description'], image_from_db.description)
318 318
            
319 319
        self.assertTrue(response.status_code in [200,203])
320 320

  

Also available in: Unified diff