From 387b50bcac5eb11201bca2850b8a5fd124e5c5eb Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 27 Oct 2015 17:54:02 -0400 Subject: [PATCH] Add a unicode test to make sure we don't break --- test/registry_tests.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/registry_tests.py b/test/registry_tests.py index cb7cf412d..dac59d9b1 100644 --- a/test/registry_tests.py +++ b/test/registry_tests.py @@ -440,6 +440,19 @@ class RegistryTests(RegistryTestCase): # org. self.do_pull('buynlarge', 'newrepo', 'devtable', 'password') + + def test_push_unicode_metadata(self): + self.conduct_api_login('devtable', 'password') + + images = [{ + 'id': 'onlyimagehere', + 'comment': 'Pawe\xc5\x82 Kami\xc5\x84ski '.decode('utf-8') + }] + + self.do_push('devtable', 'unicodetest', 'devtable', 'password', images) + self.do_pull('devtable', 'unicodetest', 'devtable', 'password') + + def test_tag_validation(self): image_id = 'onlyimagehere' images = [{