Add a unicode test to make sure we don't break

This commit is contained in:
Joseph Schorr 2015-10-27 17:54:02 -04:00
parent 64ea2970c5
commit 387b50bcac

View file

@ -440,6 +440,19 @@ class RegistryTests(RegistryTestCase):
# org. # org.
self.do_pull('buynlarge', 'newrepo', 'devtable', 'password') 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 <pawel.kaminski@codewise.com>'.decode('utf-8')
}]
self.do_push('devtable', 'unicodetest', 'devtable', 'password', images)
self.do_pull('devtable', 'unicodetest', 'devtable', 'password')
def test_tag_validation(self): def test_tag_validation(self):
image_id = 'onlyimagehere' image_id = 'onlyimagehere'
images = [{ images = [{