def test_to_str(self):
     tools.eq_(converters.to_str(self.u_japanese), self.utf8_japanese)
     tools.eq_(converters.to_str(self.utf8_spanish), self.utf8_spanish)
     tools.eq_(converters.to_str(object), "<type 'object'>")
 def test_to_str(self):
     tools.eq_(converters.to_str(self.u_japanese), self.utf8_japanese)
     tools.eq_(converters.to_str(self.utf8_spanish), self.utf8_spanish)
     tools.eq_(converters.to_str(object), b"<class 'object'>")
 def test_to_str(self):
     tools.ok_(converters.to_str(self.u_japanese) == self.utf8_japanese)
     tools.ok_(converters.to_str(self.utf8_spanish) == self.utf8_spanish)
     tools.ok_(converters.to_str(object) == "<type 'object'>")