Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions riak/tests/test_kv.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,17 @@ def test_store_obj_with_unicode(self):
obj = bucket.get('foo')
self.assertEqual(obj.data, data)

def test_store_obj_set_key_to_unicode(self):
bucket = self.client.bucket(self.bucket_name)
data = {'hello': 'world'}
obj = bucket.new()
obj.key = u'foo'
obj.data = data
obj.store()

obj = bucket.get(u'foo')
self.assertEquals(obj.data, data)

def test_store_unicode_string(self):
bucket = self.client.bucket(self.bucket_name)
data = u"some unicode data: \u00c6"
Expand Down