""" $Id: RSSNodeUnit.py,v 1.2 2000/10/13 03:41:06 kmacleod Exp $ """ import unittest import types import Orchard import Orchard.RSS rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" class RSSNodeUnitTestCase(unittest.TestCase): def checkChannelConstructor(self): channel = Orchard.RSS.Channel() assert channel.node_type is Orchard.RSS.ChannelType def checkItemConstructor(self): item = Orchard.RSS.Item() assert item.node_type is Orchard.RSS.ItemType def checkTextInputConstructor(self): text_input = Orchard.RSS.TextInput() assert text_input.node_type is Orchard.RSS.TextInputType def checkImageConstructor(self): image = Orchard.RSS.Image() assert image.node_type is Orchard.RSS.ImageType # # Check default property values # def checkChannelItems(self): channel = Orchard.RSS.Channel() assert type(channel.items) is types.ListType def suite(): return unittest.makeSuite(RSSNodeUnitTestCase,'check') if __name__ == "__main__": unittest.TextTestRunner().run(suite())