Permalink
Browse files

add in a utf test, just in case (bug 825682)

  • Loading branch information...
1 parent 7d17287 commit 4d5e85f355ce83ed86edf0a045c42ec7aff96c32 @andymckay andymckay committed Dec 31, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/bango/tests/test_resources.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
import json
from django.conf import settings
@@ -67,6 +68,14 @@ def test_create(self):
seller_bango = SellerBango.objects.get()
eq_(json.loads(res.content)['resource_pk'], seller_bango.pk)
+ def test_unicode(self):
+ post = samples.good_address.copy()
+ post['companyName'] = u'འབྲུག་ཡུལ།'
+ post['seller'] = ('/generic/seller/%s/' %
+ Seller.objects.create(uuid=self.uuid).pk)
+ res = self.client.post(self.list_url, data=post)
+ eq_(res.status_code, 201, res.content)
+
def test_missing_field(self):
data = {'adminEmailAddress': 'admin@place.com',
'supportEmailAddress': 'support@place.com'}

0 comments on commit 4d5e85f

Please sign in to comment.