Commit 3ced610d authored by Christian Zagrodnick's avatar Christian Zagrodnick

added another test to really make sure __str__ is being called when there is no

__unicode__
parent 620fe602
......@@ -2454,6 +2454,13 @@ class TestUnicode(unittest.TestCase):
return u'unicode was called'
self.assertEqual(u'unicode was called', unicode(A().__of__(A())))
def test_should_fall_back_to_str(self):
class A(Acquisition.Explicit):
def __str__(self):
return 'str was called'
self.assertEqual(u'str was called', unicode(A().__of__(A())))
def test_suite():
return unittest.TestSuite((
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment