Beispiel #1
0
 def test_unicode_deserialize(self):
     """
     UnicodeAttribute.deserialize
     """
     attr = UnicodeAttribute()
     self.assertEqual(attr.deserialize('foo'), six.u('foo'))
     self.assertEqual(attr.deserialize(u'foo'), six.u('foo'))
Beispiel #2
0
 def test_unicode_deserialize(self):
     """
     UnicodeAttribute.deserialize
     """
     attr = UnicodeAttribute()
     assert attr.deserialize('foo') == 'foo'
     assert attr.deserialize(u'foo') == 'foo'
Beispiel #3
0
 def test_unicode_deserialize(self):
     """
     UnicodeAttribute.deserialize
     """
     attr = UnicodeAttribute()
     assert attr.deserialize('foo') == six.u('foo')
     assert attr.deserialize(u'foo') == six.u('foo')