Revision 47fc1d1d snf-tools/synnefo_tools/burnin/images_tests.py
b/snf-tools/synnefo_tools/burnin/images_tests.py | ||
---|---|---|
191 | 191 |
self.assertEqual(len(images), 1) |
192 | 192 |
self.info("Image registered with id %s", images[0]['id']) |
193 | 193 |
|
194 |
self.info("Registering with unicode name") |
|
195 |
uni_str = u'\u03b5\u03b9\u03ba\u03cc\u03bd\u03b1'.encode('utf-8') |
|
196 |
uni_name = '%s, or %s in Greek' % (self.temp_image_name, uni_str) |
|
197 |
img = self.clients.image.register( |
|
198 |
uni_name, location, params, properties) |
|
199 |
|
|
200 |
self.info('Checking if image with unicode name exists') |
|
201 |
found_img = self.clients.image.get_meta(img['id']) |
|
202 |
self.assertEqual(found_img['name'], self.temp_image_name) |
|
203 |
self.info("Image registered with id %s", found_img['id']) |
|
204 |
|
|
194 | 205 |
def test_010_cleanup_image(self): |
195 | 206 |
"""Remove uploaded image from Pithos""" |
196 | 207 |
# Remove uploaded image |
Also available in: Unified diff