btw, this is weird, because all my tests pass:
class TestFields(ExtenderTestCase):
""" ensure fields implementation """
def afterSetUp(self):
self.folder.invokeFactory('News Item', 'news1')
self.news1 = getattr(self.folder, 'news1')
def testBylineField(self):
schema = self.news1.Schema()
byline_field = schema.getField('byline')
# there's no default method defined for byline
self.assertEqual(byline_field.getDefault(self.news1), '')
# getting and setting values
self.assertEqual(byline_field.get(self.news1), '')
byline_field.set(self.news1, 'someone')
self.assertEqual(byline_field.get(self.news1), 'someone')
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers